/* PAVTI App - Premium UI Theme */
:root {
    --primary: #ea6d06;
    --primary-dark: #b84f03;
    --primary-light: #f4d2b8;
    --accent: #21845b;
    --bg-main: #f8f9fa;
    --bg-surface: #ffffff;
    --text-main: #2b2f38;
    --text-muted: #667085;
    --border-color: #e5e7eb;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    padding-top: 80px;
}

/* Layout Containers */
.container-fluid {
    max-width: 1400px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Navigation */
.navbar {
    background: rgba(234, 109, 6, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(234, 109, 6, 0.15);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

/* Cards & Glassmorphism */
.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-surface);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

.dashboard-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card:hover {
    border-color: rgba(234, 109, 6, 0.25);
    box-shadow: 0 12px 32px -8px rgba(234, 109, 6, 0.12);
    transform: translateY(-3px);
}

/* Square icon container for dashboard cards */
.dash-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    flex-shrink: 0;
}

.dash-icon-box.primary   { background: #fff4ec; }
.dash-icon-box.info      { background: #e0f2fe; }
.dash-icon-box.danger    { background: #fee2e2; }
.dash-icon-box.success   { background: #dcfce7; }
.dash-icon-box.warning   { background: #fef3c7; }

.metric-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

/* Forms */
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 0.625rem 1rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(234, 109, 6, 0.1);
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(234, 109, 6, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #a04402 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 109, 6, 0.35);
}

/* Tables */
.table-responsive {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: white;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f9fafb;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: #fcfcfc;
}

/* Media Previews */
.media-preview-container {
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.media-preview-container:hover {
    border-color: var(--primary);
}

.table-media-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Status Badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    border-radius: 6px;
}

/* Expiry Notification */
.alert-expiry {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(153, 27, 27, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-fade-up {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Responsive Tweaks */
@media (max-width: 991.98px) {
    .container-fluid {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .metric-value {
        font-size: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    body { padding-top: 70px; }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .card {
        border-radius: 12px;
    }
}

/* Language Selector */
.lang-selector-wrapper {
    position: relative;
}

.lang-select {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 0.3rem 1.8rem 0.3rem 0.6rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    backdrop-filter: blur(4px);
    min-width: 90px;
    transition: var(--transition);
    appearance: auto;
}

.lang-select:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15) !important;
    outline: none;
}

.lang-select option {
    background: #2b2f38;
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
