/* ===== PROFESSIONAL MODERN STYLES ===== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== LAYOUT COMPONENTS ===== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--dark-gradient);
    color: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.mobile-open {
    transform: translateX(0);
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sidebar-brand .logo img {
    max-width: 100%;
    max-height: 60px;   /* adjust as needed */
    height: auto;
    width: auto;
    object-fit: contain;
}


.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #667eea;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 0;
    width: 100%;
    min-height: 100vh;
    transition: var(--transition);
}

.header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.header-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border-radius: 50px;
    transition: var(--transition);
}

.user-info:hover {
    background: #edf2f7;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background: var(--primary-gradient); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-avatar .avtar-img{
    height: 2.5rem;
    width: auto;
}

.content-wrapper {
    padding: 2rem;
}

/* ===== MOBILE HAMBURGER MENU ===== */

.mobile-menu-btn {
    display: flex;
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(5px);
}

.sidebar-overlay.mobile-open {
    display: block;
}

/* Animated Hamburger */
.animated-hamburger {
    width: 20px;
    height: 14px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.animated-hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.animated-hamburger span:nth-child(1) { top: 0px; }
.animated-hamburger span:nth-child(2) { top: 6px; }
.animated-hamburger span:nth-child(3) { top: 12px; }

.sidebar.mobile-open + .main-content .animated-hamburger span:nth-child(1) {
    top: 6px;
    transform: rotate(135deg);
}

.sidebar.mobile-open + .main-content .animated-hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.sidebar.mobile-open + .main-content .animated-hamburger span:nth-child(3) {
    top: 6px;
    transform: rotate(-135deg);
}

/* ===== CARD DESIGNS ===== */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-gradient {
    background: var(--primary-gradient);
    color: white;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* ===== DASHBOARD CARDS ===== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-card.success::before { background: var(--success-gradient); }
.stat-card.warning::before { background: var(--warning-gradient); }
.stat-card.danger::before { background: var(--danger-gradient); }
.stat-card.info::before { background: var(--secondary-gradient); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    color: white;
}

.stat-card.success .stat-icon { background: var(--success-gradient); }
.stat-card.warning .stat-icon { background: var(--warning-gradient); }
.stat-card.danger .stat-icon { background: var(--danger-gradient); }
.stat-card.info .stat-icon { background: var(--secondary-gradient); }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-title {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.trend-up { color: #48bb78; }
.trend-down { color: #f56565; }

/* ===== BUTTON STYLES ===== */

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-success {
    background: var(--success-gradient);
    border: none;
}

.btn-warning {
    background: var(--warning-gradient);
    border: none;
}

.btn-danger {
    background: var(--danger-gradient);
    border: none;
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* ===== TABLE ENHANCEMENTS ===== */

.table-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    transition: var(--transition);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: #f7fafc;
    transform: scale(1.01);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== FORM CONTROLS ===== */

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.875rem;
    min-height: 46px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:hover, .form-select:hover {
    border-color: #cbd5e0;
}

.form-label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ===== SELECT2 CUSTOMIZATION ===== */

.select2-container--default .select2-selection--single {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    height: 46px !important;
    padding: 0.5rem !important;
    background: white !important;
    transition: var(--transition) !important;
    min-height: 46px;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    padding-left: 0 !important;
    color: #2d3748 !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #a0aec0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #718096 transparent transparent transparent !important;
    border-width: 6px 6px 0 6px !important;
}

.select2-container--default .select2-results__option {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--primary-gradient) !important;
    color: white !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #f7fafc !important;
    color: #2d3748 !important;
}

.select2-container--default .select2-dropdown {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow) !important;
    margin-top: 4px !important;
}

.select2-container--default .select2-selection--single[aria-disabled=true] {
    background-color: #f7fafc !important;
    opacity: 0.7 !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
}

/* ===== CHART CONTAINERS ===== */

.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chart-actions .form-select {
    border-radius: 6px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* ===== LOADING ANIMATIONS ===== */

.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* ===== ALERTS & NOTIFICATIONS ===== */

.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.alert-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

/* ===== PAGINATION ===== */

.pagination {
    gap: 0.5rem;
}

.page-link {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #4a5568;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow);
}

/* ===== LOGIN PAGE ===== */

/* .login-page {
    min-height: 100vh;
    background: var(--primary-gradient);
    background: ;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
} */

.login-page {
    min-height: 100vh;
    background: url("https://www.innoricsystems.com/wp-content/uploads/2025/04/Site-logo.png");
    background-size: cover;
    background-position: center;
    background-repeat:repeat;


    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Dull overlay */
.login-page::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.541); /* adjust dullness */
    z-index: 1;
}

/* Keep inner content above overlay */
.login-page > * {
    position: relative;
    z-index: 2;
}
/* yaha tak ka code del kar sakte hai -aryan */
.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.login-logo i {
    font-size: 3rem;
}

.login-subtitle {
    color: #718096;
    font-size: 1rem;
}

/* ===== ANALYTICS PAGE SPECIFIC ===== */

.empty-state-icon {
    opacity: 0.7;
    transition: var(--transition);
}

.empty-state-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

.bg-light {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
}

/* ===== UTILITY CLASSES ===== */

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-lg {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover-lift:hover {
    transform: translateY(-2px);
    transition: var(--transition);
}

/* ===== BADGES ===== */

.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-success {
    background: var(--success-gradient);
    color: white;
}

.badge-warning {
    background: var(--warning-gradient);
    color: white;
}

.badge-danger {
    background: var(--danger-gradient);
    color: white;
}

.badge-info {
    background: var(--secondary-gradient);
    color: white;
}

/* ===== CUSTOM SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header {
        padding: 0 1rem;
    }
    
    .header-title h1 {
        font-size: 1.25rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .d-flex.flex-wrap {
        gap: 0.5rem !important;
    }
    
    .btn {
        padding: 0.75rem 1rem;
    }
    
    .user-info .user-name {
        display: none;
    }
    
    .user-info .user-details {
        display: none;
    }
}

@media (max-width: 640px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .sidebar-brand {
        padding: 1.5rem 1rem;
    }
    
    .sidebar-nav .nav-link {
        padding: 1rem 1.5rem;
    }
    
}

/* Enhanced button hover effects */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}