/* Premium Glassmorphism Design System for Revenue Suwidha */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #f4f6f9;
    color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.login-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.glass-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.bg-gradient-premium {
    background: var(--primary-gradient) !important;
}

.topbar.shadow-premium {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Enhanced Dashboard Cards */
.dash-card {
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    position: relative;
    z-index: 1;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Color variations for cards */
.dash-card.border-primary {
    border-bottom: 3px solid #4e73df !important;
    border-left: none !important;
}

.dash-card.border-success {
    border-bottom: 3px solid #1cc88a !important;
    border-left: none !important;
}

.dash-card.border-info {
    border-bottom: 3px solid #36b9cc !important;
    border-left: none !important;
}

.dash-card.border-warning {
    border-bottom: 3px solid #f6c23e !important;
    border-left: none !important;
}

.dash-card.border-danger {
    border-bottom: 3px solid #e74a3b !important;
    border-left: none !important;
}

/* Remove default left borders */
.border-left-primary,
.border-left-success,
.border-left-info,
.border-left-warning,
.border-left-danger {
    border-left: none !important;
}

.dash-card .text-xs {
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
    font-size: 0.70rem;
    color: #4e73df;
    /* Default to primary for text-primary etc */
}

/* Adjust text colors slightly for the other variants */
.dash-card.border-success .text-xs {
    color: #1cc88a;
}

.dash-card.border-info .text-xs {
    color: #36b9cc;
}

.dash-card.border-warning .text-xs {
    color: #f6c23e;
}

.dash-card .h5 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #2c3e50 !important;
}

.dash-card .fa-2x {
    font-size: 1.5em;
    /* Smaller icons */
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #dddfeb;
    /* default light grey icon */
}

.dash-card:hover .fa-2x {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Mobile Responsiveness tweaks */
@media (max-width: 768px) {
    .dash-card .h5 {
        font-size: 1.1rem;
    }

    .dash-card .text-xs {
        font-size: 0.65rem;
    }

    .dash-card .fa-2x {
        font-size: 1.2em;
    }

    .card-body {
        padding: 0.75rem;
        /* Tighter padding on mobile */
    }

    .sidebar-brand-text {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    .glass-card .card-body {
        padding: 1.5rem !important;
    }
}

/* Upload Preview Table Styling */
.upload-preview-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border: 1px dashed rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.upload-preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4e73df;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-preview-table {
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.upload-preview-table th {
    background: #f8f9fc;
    color: #4e73df;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e3e6f0;
    white-space: nowrap;
}

.upload-preview-table td {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #5a5c69;
    vertical-align: middle;
    border-bottom: 1px solid #e3e6f0;
    white-space: nowrap;
}

.upload-preview-table tr:last-child td {
    border-bottom: none;
}

.col-required {
    color: #e74a3b;
    font-weight: bold;
    margin-left: 2px;
}

.upload-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}