/* Modern Dashboard Design System - Light Theme */

/* ============================================
   CSS VARIABLES - GRADIENT COLOR PALETTE
   ============================================ */
:root {
    /* Card Design */
    --card-border-radius: 12px;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Vibrant Gradient Palette - Refined for Deep Emerald theme */
    --gradient-primary: linear-gradient(135deg, #F59E0B 0%, #E07B00 100%);
    /* Amber / Saffron */
    --gradient-success: linear-gradient(135deg, #10b981 0%, #047857 100%);
    /* Emerald 500 to 700 */
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    /* Red 500 to 600 */
    --gradient-info: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    /* Sky 500 to 600 */
    --gradient-warning: linear-gradient(135deg, #D97706 0%, #92400e 100%);
    /* Amber 600 to 800 (Rich Gold) */
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    /* Violet 500 to 600 */
    --gradient-ocean: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    /* Cyan 500 to 600 */
    --gradient-sunset: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    /* Orange 500 to 600 */
    --gradient-mint: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    /* Emerald 400 to 500 */
    --gradient-peach: linear-gradient(135deg, #fcd34d 0%, #D97706 100%);
    /* Amber 300 to 600 (Rich Gold) */
}

/* ============================================
   ENHANCED GLASS CARDS (Light Theme)
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ============================================
   LANDING PAGE CARDS WITH GRADIENTS
   ============================================ */
.landing-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--card-border-radius);
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.landing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 1;
    pointer-events: none;
}

.landing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.landing-card:hover::after {
    opacity: 1;
}

.landing-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(245, 158, 11, 0.2);
}

/* ============================================
   GRADIENT ICONS
   ============================================ */
.landing-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.landing-card:hover .landing-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ENHANCED BUTTONS
   ============================================ */
.btn-gradient {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-gradient:active {
    transform: translateY(0);
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: #D97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    background-color: #ffffff;
}

.form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Red Borders for Required Fields */
.form-control[required],
.form-select[required],
.custom-form-input[required],
.custom-form-select[required] {
    border-color: rgba(239, 68, 68, 0.4); /* Subtle red */
}

.form-control[required]:focus,
.form-select[required]:focus,
.custom-form-input[required]:focus,
.custom-form-select[required]:focus {
    border-color: #ef4444; /* Bright red on focus */
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F59E0B 0%, #E07B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid;
    border-image: var(--gradient-primary) 1;
}

.page-header h2 {
    font-weight: 800;
    color: #1e293b;
    background: none;
    -webkit-text-fill-color: initial;
}

/* ============================================
   INFO BADGES
   ============================================ */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--gradient);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   STEP INDICATORS
   ============================================ */
.step-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-right: 1rem;
}

/* ============================================
   TABLE ENHANCEMENTS
   ============================================ */
.table-modern {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table-modern thead {
    background: var(--gradient-primary);
    color: white;
}

.table-modern thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background-color: #f8fafc;
    transform: scale(1.005);
}

/* ============================================
   ALERT ENHANCEMENTS
   ============================================ */
.alert-modern {
    border-radius: var(--card-border-radius);
    border: none;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
}

.alert-modern.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-left: 4px solid #10b981;
    color: #065f46;
}

.alert-modern.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-modern.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert-modern.alert-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.1) 100%);
    border-left: 4px solid #0ea5e9;
    color: #075985;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .landing-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .landing-card {
        padding: 2rem 1.5rem;
    }

    .step-indicator {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================
   PULSE ANIMATION
   ============================================ */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    }
}

.pulse-button {
    animation: pulse 2s infinite;
}

/* Storage Transaction Badges */
.badge-unloading {
    background: var(--gradient-info) !important;
    color: white !important;
    border: none;
}

.badge-loading {
    background: var(--gradient-success) !important;
    color: white !important;
    border: none;
}

.badge-sell {
    background: var(--gradient-danger) !important;
    color: white !important;
    border: none;
}

.badge-transfer {
    background: var(--gradient-warning) !important;
    color: white !important;
    border: none;
}

/* ============================================
   CJE AESTHETIC PRO STYLES
   ============================================ */

/* Elegant Page Titles */
.page-title-elegant { 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    color: #0f172a; 
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.page-title-elegant i { 
    color: var(--bs-primary); 
    font-size: 1.5rem; 
}

/* Filter and Table Cards */
.filter-card { 
    border-radius: 16px; 
    border: 1px solid rgba(0,0,0,0.06); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
    background: #ffffff; 
    padding: 1.5rem;
}

.table-card { 
    border-radius: 16px; 
    border: 1px solid rgba(0,0,0,0.06); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
    background: #ffffff; 
    overflow: hidden; 
}

/* Modern Tables */
.modern-table { 
    margin-bottom: 0; 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0; 
}

.modern-table thead th { 
    background: #f8fafc; 
    color: #64748b; 
    font-weight: 600; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    padding: 1rem 1.5rem; 
    border-bottom: 1px solid #e2e8f0; 
    border-top: none; 
}

.modern-table tbody td { 
    padding: 1.25rem 1.5rem; 
    vertical-align: middle; 
    border-bottom: 1px solid #f1f5f9; 
    color: #334155; 
}

.modern-table tbody tr:last-child td { 
    border-bottom: none; 
}

.modern-table tbody tr { 
    transition: all 0.2s ease; 
}

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

/* Custom Form Elements */
.custom-form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.custom-form-select, 
.custom-form-input {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.custom-form-select:focus, 
.custom-form-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
}

/* Stats Cards Enhancements */
.stat-card-elegant {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

.stat-card-elegant:hover { 
    transform: translateY(-3px); 
}
/* ============================================
   WEIGHT UNIT TOGGLE BUTTONS
   ============================================ */
.weight-unit-toggle .weight-unit-btn {
    border: 1.5px solid #047857;
    color: #047857;
    background: #ffffff;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
    transition: background 0.15s, color 0.15s;
}
.weight-unit-toggle .weight-unit-btn:hover:not(.active) {
    background: #f0fdf4;
}
.weight-unit-toggle .weight-unit-btn.active {
    background: linear-gradient(135deg, #047857 0%, #064E3B 100%);
    color: #ffffff;
    border-color: #047857;
}
