/* css/restaurant.css */
.portal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 32px 48px;
    height: calc(100vh - 90px);
    overflow-y: auto;
    max-width: 100%;
    margin: 0 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 h2 {
    margin-top: 0;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: 700;
}

.panel h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: white;
    font-size: 0.95rem;
}

#donation-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-verification-zone {
    border: 2px dashed rgba(46, 204, 113, 0.4);
    border-radius: 12px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(30, 41, 59, 0.3) 100%);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.ai-verification-zone:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(30, 41, 59, 0.4) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.2);
}

#upload-hint {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-align: center;
}

#ai-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

#ai-loader {
    margin: 20px 0;
}

#ai-status-board {
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    text-align: center;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    background: rgba(30, 41, 59, 0.6);
}

#ai-status-board.ai-approved {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-color: rgba(46, 204, 113, 0.4);
}

#ai-status-board.ai-uncertain {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2) 0%, rgba(243, 156, 18, 0.1) 100%);
    border-color: rgba(243, 156, 18, 0.4);
}

#ai-status-board.ai-rejected {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(231, 76, 60, 0.1) 100%);
    border-color: rgba(231, 76, 60, 0.4);
}

#ai-result-text {
    margin: 0 0 8px 0;
    font-weight: bold;
    font-size: 0.95rem;
}

#ai-confidence {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.ai-approved { 
    background: rgba(46, 204, 113, 0.15);
    border-color: var(--primary) !important;
    color: var(--primary);
}

.ai-uncertain {
    background: rgba(243, 156, 18, 0.15);
    border-color: var(--warning) !important;
    color: var(--warning);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-uncertain:hover {
    background: rgba(243, 156, 18, 0.2);
}

.ai-rejected { 
    background: rgba(231, 76, 60, 0.15);
    border-color: var(--danger) !important;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-rejected:hover {
    background: rgba(231, 76, 60, 0.2);
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.live-list {
    flex: 1;
    overflow-y: auto;
}

.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);
}

.donation-item {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(30, 41, 59, 0.5) 100%);
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 204, 113, 0.2);
    cursor: pointer;
}

.donation-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.donation-item.assigned {
    border-left-color: var(--secondary);
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .portal-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}