/* css/shelter.css */
.shelter-portal {
    display: grid;
    grid-template-columns: 1.8fr 1.3fr;
    gap: 36px;
    padding: 32px 48px;
    height: calc(100vh - 90px);
    overflow-y: auto;
}

.portal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 32px 48px;
    height: calc(100vh - 90px);
    overflow-y: auto;
}
    height: calc(100vh - 90px);
    overflow-y: auto;
}

.panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.1), inset 0 1px 1px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 12px 48px rgba(46, 204, 113, 0.15), inset 0 1px 1px rgba(255,255,255,0.1);
}

.panel h3 {
    margin-top: 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
    font-weight: 700;
}

.panel h3:first-child {
    margin-top: 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(30, 41, 59, 0.5) 100%);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-bottom: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.6);
}

.stat-card h3 {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}

.stat-card p {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: white;
}

.stat-card small {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

.danger-text {
    color: var(--danger);
}

.filter-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-btn {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(20, 30, 48, 0.8) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(20, 30, 48, 0.9) 100%);
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-color: #2ecc71;
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.live-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.live-list::-webkit-scrollbar {
    width: 6px;
}

.live-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.live-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.live-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.arrival-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(30, 41, 59, 0.3) 100%);
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    border: 1px solid rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
    gap: 12px;
    cursor: pointer;
}

.arrival-row.status-pending {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.08) 0%, rgba(30, 41, 59, 0.3) 100%);
    border-color: rgba(243, 156, 18, 0.2);
}

.arrival-row.status-delivered {
    border-left-color: var(--primary);
    opacity: 0.8;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(30, 41, 59, 0.2) 100%);
    border-color: rgba(46, 204, 113, 0.3);
}

.arrival-row:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(30, 41, 59, 0.4) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.4);
}

.arrival-info {
    flex: 1;
}

.arrival-info strong {
    color: white;
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.arrival-info small {
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    display: block;
    margin-bottom: 2px;
}

.arrival-status {
    text-align: right;
    white-space: nowrap;
}

.safety-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--warning);
    font-size: 0.8rem;
}

.badge-delivered {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.nutrition-board {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(30, 41, 59, 0.3) 100%);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.nutrition-item {
    margin-bottom: 12px;
}

.nutrition-item:last-child {
    margin-bottom: 0;
}

.nutrition-item span {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.8);
}

.progress {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress div {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

#handover-zone {
    background: var(--bg-elevated);
    border: 2px dashed var(--glass);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hint {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.85rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.btn-secondary {
    padding: 10px 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.6);
}

.shelter-info-card {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(30, 41, 59, 0.3) 100%);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    border: 1px solid rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.shelter-info-card:hover {
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: rgba(255,255,255,0.6);
}

.info-row strong {
    color: white;
    font-weight: 600;
}

@media (max-width: 1280px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shelter-portal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .portal-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* Food Inventory Display */
.food-inventory-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.food-category-card {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.6) 0%, rgba(44, 62, 80, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
}

.food-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ecf0f1;
}

.category-weight {
    font-size: 0.85rem;
    background: rgba(46, 204, 113, 0.2);
    padding: 4px 12px;
    border-radius: 8px;
    color: #2ecc71;
    font-weight: 600;
}

.food-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.food-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: rgba(52, 73, 94, 0.3);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid rgba(46, 204, 113, 0.4);
    transition: all 0.2s ease;
}

.food-item:hover {
    background: rgba(46, 204, 113, 0.15);
    border-left-color: #2ecc71;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 4px;
}

.item-donor {
    font-size: 0.75rem;
    color: #bdc3c7;
    display: block;
    margin-bottom: 6px;
}

.item-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #95a5a6;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-status {
    margin-left: 12px;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.quality-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 85px;
}

.quality-approved {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.quality-uncertain {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.4);
}

.quality-rejected {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.empty-msg {
    text-align: center;
    padding: 20px;
    color: #95a5a6;
    font-size: 0.9rem;
}