/* Main Container */
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Shelter Header Section */
.shelter-header-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE4CC 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.shelter-icon-large {
    background: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(172, 212, 98, 0.4);
}

.shelter-icon-large i {
    font-size: 40px;
}

.header-info h1 {
    margin: 0 0 0.75rem 0;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
}

.header-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.shelter-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.shelter-status.active {
    background: #4caf50;
    color: white;
}

.shelter-status.inactive {
    background: #9e9e9e;
    color: white;
}

.shelter-status i {
    font-size: 12px;
}

.shelter-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1rem;
}

.shelter-location i {
    color: var(--primary-color);
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.quick-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Detail Container */
.detail-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Info Card */
.info-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem 0;
    color: var(--text-color);
    font-size: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--tertiary-color);
}

.info-card h3 i {
    color: var(--primary-color);
    font-size: 24px;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary-color);
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-content .label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.info-content .value {
    color: var(--text-color);
    font-size: 0.95rem;
    word-break: break-word;
}

.info-content .value a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-content .value a:hover {
    text-decoration: underline;
}

/* Capacity Display */
.capacity-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.capacity-numbers {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.current-capacity,
.total-capacity {
    text-align: center;
    flex: 1;
}

.capacity-numbers .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.capacity-numbers .number.normal {
    color: #4caf50;
}

.capacity-numbers .number.high {
    color: #ff9800;
}

.capacity-numbers .number.full {
    color: #f44336;
}

.capacity-numbers .label {
    display: block;
    font-size: 0.85rem;
    color: #888;
}

.capacity-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.capacity-fill {
    height: 100%;
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capacity-fill.normal {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.capacity-fill.high {
    background: linear-gradient(90deg, #ff9800, #ffa726);
}

.capacity-fill.full {
    background: linear-gradient(90deg, #f44336, #ef5350);
}

.percent-text {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hours List */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-item .day {
    font-weight: 500;
    color: var(--text-color);
}

.hour-item .time {
    color: #666;
}

.hour-item .closed {
    color: #999;
    font-style: italic;
}

/* Rules Content */
.rules-content {
    line-height: 1.8;
    color: #555;
    font-size: 0.95rem;
}

/* Main Content */
.main-content {
    min-width: 0;
}

/* Pets Section */
.pets-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--tertiary-color);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.section-header h2 i {
    color: var(--primary-color);
}

.pets-count {
    color: #666;
    font-size: 1rem;
}

/* No Pets */
.no-pets {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-pets i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-pets p {
    margin: 0;
    font-size: 1.1rem;
}

/* Pets Grid */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Pet Card */
.pet-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.pet-image-container {
    position: relative;
    overflow: hidden;
}

.pet-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pet-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pet-status.waiting {
    background: #4caf50;
}

.pet-status.adopting {
    background: #ff9800;
}

.pet-status.adopted {
    background: #f44336;
}

.pet-status.disabled {
    background: #9e9e9e;
}

.pet-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pet-info h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.pet-details {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}

.pet-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.pet-details i {
    font-size: 18px;
    color: var(--primary-color);
}

.pet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--tertiary-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* Error Container */
.error-container {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.2rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 300px 1fr;
    }

    .pets-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }

    .shelter-header-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-content {
        width: 100%;
    }

    .shelter-icon-large {
        width: 60px;
        height: 60px;
    }

    .shelter-icon-large i {
        font-size: 32px;
    }

    .header-info h1 {
        font-size: 1.5rem;
    }

    .quick-actions {
        width: 100%;
        flex-direction: column;
    }

    .quick-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .detail-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .pets-section {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-meta {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .info-card {
        padding: 1.25rem;
    }

    .capacity-numbers {
        flex-direction: column;
        gap: 1.5rem;
    }
}
