/* Login Page css */
:root {
      --navy-blue: #1e3a8a;
      --navy-dark: #1e1b4b;
      --navy-light: #3b82f6;
      --accent-blue: #dbeafe;
      --white: #ffffff;
      --light-gray: #f8fafc;
      --danger: #ef4444;
    }
    body {
      min-height: 100vh;
      background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-dark) 100%);
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      font-family: 'Poppins', sans-serif;
      position: relative;
      margin: 0;
      padding: clamp(0.5rem, 2vw, 1rem);
    }
    #particles-js {
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: 0;
    }
    .container {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      width: 100%;
      max-width: 1200px;
      padding: 0;
            overflow: hidden;

    }
    .card {
      border: none;
      border-radius: clamp(10px, 2.5vw, 18px);
      overflow: hidden;
      box-shadow: 0 15px 40px rgba(0,0,0,0.25);
      z-index: 2;
      background: rgba(255,255,255,0.98);
      backdrop-filter: blur(12px);
      width: 100%;
      max-width: clamp(320px, 90vw, 850px);
      transition: transform 0.3s ease;
    }
    .card:hover {
      box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    }
    .left-panel {
      background: linear-gradient(135deg, var(--navy-blue), var(--navy-light));
      color: var(--white);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: clamp(1.5rem, 3.5vw, 2.5rem);
      text-align: center;
      min-height: clamp(280px, 45vh, 380px);
      position: relative;
      overflow: hidden;
    }
    .left-panel::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
      animation: rotateGlow 10s linear infinite;
    }
    @keyframes rotateGlow {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .left-panel img {
      max-width: clamp(35%, 12vw, 45%);
      margin-bottom: clamp(12px, 2.5vw, 18px);
      animation: floatGlow 3s infinite ease-in-out;
      filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    }
    @keyframes floatGlow {
      0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
      50% { transform: translateY(-6px) scale(1.05); filter: brightness(1.2); }
    }
    .left-panel h2 {
      font-family: 'Orbitron', sans-serif;
      font-size: clamp(1.5rem, 4vw, 2.2rem);
      letter-spacing: 1.5px;
      margin-bottom: clamp(0.8rem, 2vw, 1rem);
      text-shadow: 0 3px 8px rgba(0,0,0,0.4);
    }
    .left-panel p {
      font-size: clamp(0.8rem, 2.2vw, 1rem);
      opacity: 0.85;
    }
    .badge-custom {
      background: linear-gradient(90deg, var(--navy-light), var(--navy-blue));
      color: var(--white);
      font-size: clamp(0.75rem, 2vw, 0.9rem);
      border-radius: 12px;
      padding: clamp(0.4em, 1.5vw, 0.5em) clamp(0.8em, 2vw, 1em);
      margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
      font-family: 'Orbitron', sans-serif;
      letter-spacing: 1px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .badge-custom:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    }
    .right-panel {
      padding: clamp(1.5rem, 3.5vw, 2.5rem);
      min-height: clamp(280px, 50vh, 380px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: rgba(255,255,255,0.98);
      overflow: hidden;
    }
    .right-panel h3 {
      font-family: 'Orbitron', sans-serif;
      font-weight: bold;
      margin-bottom: clamp(1.2rem, 3.5vw, 1.8rem);
      text-align: center;
      color: var(--navy-blue);
      font-size: clamp(1.3rem, 3.5vw, 1.9rem);
      text-shadow: 0 3px 6px rgba(30,58,138,0.2);
    }
    .form-group {
      position: relative;
      margin-bottom: clamp(0.8rem, 2.5vw, 1rem);
    }
    .form-control {
      border-radius: 12px;
      transition: all 0.3s ease;
      font-size: clamp(0.8rem, 2.2vw, 0.95rem);
      background: var(--light-gray);
      border: 2px solid var(--accent-blue);
      padding: clamp(0.5rem, 1.8vw, 0.7rem);
    }
    .form-control:focus {
      transform: scale(1.02);
      box-shadow: 0 0 10px rgba(30,58,138,0.3);
      border-color: var(--navy-blue);
      background: #eff6ff;
    }
    .form-control:invalid:not(:placeholder-shown) {
      border-color: var(--danger);
      box-shadow: 0 0 8px rgba(239,68,68,0.4);
    }
    .validation-icon {
      position: absolute;
      right: clamp(6px, 1.8vw, 8px);
      top: 50%;
      transform: translateY(-50%);
      font-size: clamp(0.75rem, 2vw, 0.9rem);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .form-control:valid:not(:placeholder-shown) + .validation-icon::before {
      content: '✔';
      color: #22c55e;
      opacity: 1;
    }
    .form-control:invalid:not(:placeholder-shown) + .validation-icon::before {
      content: '✖';
      color: var(--danger);
      opacity: 1;
    }
    .error-message {
      color: var(--danger);
      font-size: clamp(0.7rem, 2vw, 0.75rem);
      margin-top: clamp(0.3rem, 1.2vw, 0.4rem);
      display: none;
      text-align: center;
    }
    .btn-custom {
      background: linear-gradient(135deg, var(--navy-blue), var(--navy-light));
      color: var(--white);
      border-radius: 50px;
      padding: clamp(0.5rem, 1.8vw, 0.7rem);
      transition: all 0.3s ease;
      font-weight: 700;
      font-size: clamp(0.85rem, 2.2vw, 1rem);
      box-shadow: 0 5px 12px rgba(30,58,138,0.3);
      letter-spacing: 0.8px;
      position: relative;
      overflow: hidden;
    }
    .btn-custom::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      transition: 0.5s;
    }
    .btn-custom:hover::before {
      left: 100%;
    }
    .btn-custom:hover {
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 8px 15px rgba(30,58,138,0.5);
    }
    .btn-custom.loading::after {
      content: '';
      position: absolute;
      width: clamp(14px, 3.5vw, 16px);
      height: clamp(14px, 3.5vw, 16px);
      border: 3px solid var(--white);
      border-top: 3px solid transparent;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    @keyframes spin {
      0% { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
    }
    .form-label {
      font-weight: 600;
      color: var(--navy-blue);
      letter-spacing: 0.6px;
      font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    }
    .form-check-label {
      font-size: clamp(0.8rem, 2.2vw, 0.9rem);
      color: var(--navy-blue);
    }
    .right-panel a {
      color: var(--navy-light);
      transition: color 0.2s;
      font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    }
    .right-panel a:hover {
      color: var(--navy-blue);
      text-decoration: underline;
    }
    .divider {
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, var(--navy-blue), var(--navy-light));
      margin: clamp(0.8rem, 2.5vw, 1.2rem) 0;
      opacity: 0.25;
      border-radius: 3px;
    }
    @keyframes fadeInUp {
      from { transform: translateY(40px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    /* Media Queries for Responsiveness */
    @media (max-width: 1200px) {
      .card {
        max-width: clamp(300px, 85vw, 750px);
      }
      .left-panel, .right-panel {
        padding: clamp(1.2rem, 3vw, 2rem);
      }
      .left-panel img {
        max-width: clamp(30%, 10vw, 40%);
      }
    }
    @media (max-width: 991px) {
      .card {
        max-width: clamp(280px, 88vw, 650px);
        border-radius: clamp(8px, 2vw, 14px);
      }
      .left-panel, .right-panel {
        min-height: clamp(260px, 40vh, 340px);
        padding: clamp(1rem, 2.5vw, 1.5rem);
      }
      .left-panel h2 {
        font-size: clamp(1.3rem, 3.5vw, 1.7rem);
      }
      .right-panel h3 {
        font-size: clamp(1.2rem, 3.2vw, 1.6rem);
      }
      .form-control {
        padding: clamp(0.4rem, 1.5vw, 0.6rem);
      }
      .btn-custom {
        padding: clamp(0.4rem, 1.5vw, 0.6rem);
      }
    }
    @media (max-width: 767px) {
      .card {
        max-width: clamp(280px, 92vw, 550px);
        border-radius: clamp(8px, 2vw, 12px);
      }
      .left-panel {
        display: none; /* Hide left panel on mobile */
      }
      .right-panel {
        min-height: clamp(300px, 80vh, 400px);
        padding: clamp(1rem, 3vw, 1.5rem);
        width: 100%;
      }
      .col-md-6.right-panel {
        width: 100%;
      }
      .right-panel h3 {
        font-size: clamp(1.1rem, 3.2vw, 1.4rem);
      }
      .form-group {
        margin-bottom: clamp(0.7rem, 2.2vw, 0.9rem);
      }
      .form-control {
        padding: clamp(0.4rem, 1.5vw, 0.5rem);
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
      }
      .btn-custom {
        padding: clamp(0.4rem, 1.5vw, 0.5rem);
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
      }
      .divider {
        margin: clamp(0.7rem, 2.2vw, 1rem) 0;
      }
    }
    @media (max-width: 576px) {
      .card {
        max-width: clamp(260px, 95vw, 450px);
        border-radius: clamp(6px, 1.8vw, 10px);
      }
      .right-panel {
        padding: clamp(0.8rem, 2.5vw, 1.2rem);
      }
      .form-control {
        padding: clamp(0.35rem, 1.5vw, 0.45rem);
        font-size: clamp(0.7rem, 2.2vw, 0.8rem);
      }
      .btn-custom {
        padding: clamp(0.35rem, 1.5vw, 0.45rem);
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
      }
      .form-label, .form-check-label, .right-panel a {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem);
      }
      .error-message {
        font-size: clamp(0.65rem, 2vw, 0.7rem);
      }
    }
    @media (max-width: 400px) {
      .card {
        max-width: clamp(240px, 95vw, 340px);
      }
      .right-panel {
        padding: clamp(0.6rem, 2.5vw, 1rem);
      }
      .form-control {
        font-size: clamp(0.65rem, 2.2vw, 0.75rem);
      }
      .btn-custom {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem);
      }
    }


    /* Admin Dashboard css */
        :root {
            --navy-blue: #1e3a8a;
            --navy-dark: #1e1b4b;
            --navy-light: #3b82f6;
            --secondary-blue: #60a5fa;
            --accent-blue: #dbeafe;
            --white: #ffffff;
            --light-gray: #f8fafc;
            --medium-gray: #e2e8f0;
            --dark-gray: #64748b;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--light-gray);
            color: var(--dark-gray);
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 250px;
            height: 100vh;
            background: linear-gradient(180deg, var(--navy-blue) 0%, var(--navy-dark) 100%);
            color: var(--white);
            transition: all 0.3s ease;
            z-index: 1000;
            overflow-y: auto;
        }

        .sidebar .logo {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
        }

        .sidebar .logo h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
        }

        .sidebar .nav-menu {
            padding: 1rem 0;
        }

        .sidebar .nav-item {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }

        .sidebar .nav-item:hover,
        .sidebar .nav-item.active {
            background-color: rgba(255, 255, 255, 0.1);
            border-left-color: var(--navy-light);
            color: var(--white);
        }

        .sidebar .nav-item i {
            width: 20px;
            margin-right: 10px;
        }

        /* Main Content */
        .main-content {
            margin-left: 250px;
            padding: 2rem;
            min-height: 100vh;
            transition: all 0.3s ease;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--medium-gray);
        }

        .header h1 {
            color: var(--navy-blue);
            font-weight: 700;
            font-size: 2rem;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-profile img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .user-info h5 {
            font-size: 0.9rem;
            margin: 0;
            color: var(--navy-blue);
        }

        .user-info p {
            font-size: 0.8rem;
            margin: 0;
            color: var(--dark-gray);
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: var(--white);
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border-left: 4px solid var(--navy-blue);
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
        }

        .stat-card.success { border-left-color: var(--success); }
        .stat-card.warning { border-left-color: var(--warning); }
        .stat-card.danger { border-left-color: var(--danger); }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--navy-blue);
        }

        .stat-number.success { color: var(--success); }
        .stat-number.warning { color: var(--warning); }
        .stat-number.danger { color: var(--danger); }

        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent-blue);
            color: var(--navy-blue);
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--dark-gray);
            margin-bottom: 0.5rem;
        }

        .stat-change {
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .stat-change.positive { color: var(--success); }
        .stat-change.negative { color: var(--danger); }

        /* Charts Section */
        .charts-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .chart-card {
            background: var(--white);
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .chart-title {
            font-weight: 600;
            color: var(--navy-blue);
        }

        .chart-placeholder {
            height: 300px;
            background: linear-gradient(135deg, var(--navy-light) 0%, var(--secondary-blue) 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.1rem;
            margin-top: 1rem;
        }

        /* Recent Activity */
        .activity-card {
            background: var(--white);
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .activity-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--medium-gray);
            background: var(--navy-blue);
            color: var(--white);
        }

        .activity-item {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--medium-gray);
            transition: background 0.3s ease;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .activity-item:hover {
            background: var(--light-gray);
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent-blue);
            color: var(--navy-blue);
            font-size: 1.1rem;
        }

        .activity-content h6 {
            margin: 0;
            font-weight: 600;
            color: var(--navy-blue);
        }

        .activity-content p {
            margin: 0.25rem 0 0 0;
            font-size: 0.85rem;
            color: var(--dark-gray);
        }

        /* Quick Actions */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .action4action-btn {
            background: var(--white);
            border: 2px solid var(--medium-gray);
            border-radius: 10px;
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            color: var(--dark-gray);
        }

        .action-btn:hover {
            border-color: var(--navy-blue);
            color: var(--navy-blue);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(30, 58, 138, 0.1);
        }

        .action-btn i {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .action-btn span {
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .charts-section {
                grid-template-columns: 1fr;
            }
            
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            }
        }

        /* Mobile menu toggle */
        .mobile-toggle {
            display: none;
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: block;
                position: fixed;
                top: 1rem;
                left: 1rem;
                z-index: 1001;
                background: var(--navy-blue);
                color: white;
                border: none;
                padding: 0.5rem;
                border-radius: 5px;
            }
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .stat-card, .chart-card, .activity-card {
            animation: fadeIn 0.6s ease forwards;
        }

        .stat-card:nth-child(1) { animation-delay: 0.1s; }
        .stat-card:nth-child(2) { animation-delay: 0.2s; }
        .stat-card:nth-child(3) { animation-delay: 0.3s; }
        .stat-card:nth-child(4) { animation-delay: 0.4s; }
    