/* ═══════════════════════════════════════════════════════════════
   PREMIUM SAAS DESIGN SYSTEM - SKBTECH REGISTRATION
   Blue (#0A66FF) & White Color Scheme with Advanced Animations
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #0A66FF;
    --primary-light: #3D85FF;
    --primary-dark: #0052CC;
    --primary-ultra-light: #EBF2FF;
    --white: #FFFFFF;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --text: #111827;
    --text-secondary: #6B7280;
    --shadow-sm: 0 4px 12px rgba(10, 102, 255, 0.08);
    --shadow-md: 0 12px 32px rgba(10, 102, 255, 0.12);
    --shadow-lg: 0 24px 64px rgba(10, 102, 255, 0.16);
    --shadow-xl: 0 32px 96px rgba(10, 102, 255, 0.2);
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: var(--white);
    color: var(--text);
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes floatingElement { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
@keyframes glowPulse { 0% { box-shadow: 0 0 20px rgba(10, 102, 255, 0.3); } 50% { box-shadow: 0 0 40px rgba(10, 102, 255, 0.5); } 100% { box-shadow: 0 0 20px rgba(10, 102, 255, 0.3); } }
@keyframes slideInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes textReveal { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 102, 255, 0.1);
    box-shadow: var(--shadow-sm);
    animation: slideInDown 0.6s ease-out;
}

.navbar-brand {
    font-weight: 800; font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600; color: var(--text) !important;
    position: relative; transition: all 0.3s ease;
}

.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero-section {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 50%, var(--primary-ultra-light) 100%);
    overflow: hidden; animation: fadeIn 1s ease-out;
}

.hero-background {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 0;
}

.floating-shape {
    position: absolute; opacity: 0.1; animation: floatingElement 6s ease-in-out infinite;
}

.shape-1 {
    width: 400px; height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%; top: -100px; right: -100px; animation-delay: 0s;
}

.shape-2 {
    width: 300px; height: 300px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary));
    border-radius: 50%; bottom: -80px; left: -80px; animation-delay: 2s;
}

.hero-content {
    position: relative; z-index: 10; max-width: 900px; text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 900; line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--text) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--text-secondary);
    margin-bottom: 2rem; font-weight: 500; line-height: 1.8;
}

.hero-cta {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary-hero {
    padding: 1rem 2.5rem; font-size: 1.05rem; font-weight: 700;
    border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white); cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(10, 102, 255, 0.3);
    position: relative; overflow: hidden;
}

.btn-primary-hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.5s;
}

.btn-primary-hero:hover::before { opacity: 1; }
.btn-primary-hero:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10, 102, 255, 0.4); }
.btn-primary-hero:active { transform: translateY(-2px); }

.btn-secondary-hero {
    padding: 1rem 2.5rem; font-size: 1.05rem; font-weight: 700;
    border: 2px solid var(--primary); border-radius: 12px;
    background: transparent; color: var(--primary); cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    background: var(--primary-ultra-light); transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   FORM CARDS - GLASSMORPHISM
   ═══════════════════════════════════════════════════════════════ */

.form-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 102, 255, 0.1); border-radius: 20px;
    box-shadow: var(--shadow-lg); overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: scaleIn 0.6s ease-out;
}

.form-card:hover {
    box-shadow: var(--shadow-xl); border-color: rgba(10, 102, 255, 0.2);
    transform: translateY(-8px);
}

.form-card .card-header {
    background: linear-gradient(135deg, rgba(235, 242, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-bottom: 1px solid rgba(10, 102, 255, 0.1); padding: 2rem !important;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(10, 102, 255, 0.15); border-radius: 12px;
    padding: 0.95rem 1.2rem; font-size: 0.95rem; color: var(--text);
    transition: all 0.3s ease;
}

.form-control::placeholder { color: var(--gray-400); }
.form-control:hover, .form-select:hover { border-color: rgba(10, 102, 255, 0.3); background: rgba(235, 242, 255, 0.3); }
.form-control:focus, .form-select:focus {
    border-color: var(--primary); background: rgba(235, 242, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(10, 102, 255, 0.1); outline: none;
}

.form-label {
    font-weight: 700; color: var(--text); font-size: 0.95rem;
    margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
    font-weight: 700; border: none; border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white); box-shadow: 0 8px 20px rgba(10, 102, 255, 0.25);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10, 102, 255, 0.35); }
.btn-primary:active { transform: translateY(-1px); }

.btn-outline-primary {
    border: 2px solid var(--primary); color: var(--primary); background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-ultra-light); transform: translateY(-2px);
}

.btn-sm {
    font-size: 0.85rem; padding: 0.6rem 1rem; border-radius: 8px;
}

.btn-outline-secondary {
    border: 1.5px solid var(--gray-300); color: var(--text); transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--gray-100); border-color: var(--primary); transform: translateY(-2px);
}

.btn-outline-danger {
    border: 1.5px solid var(--danger); color: var(--danger);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1); transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════ */

.alert-card {
    border-radius: 14px; border: 1px solid rgba(10, 102, 255, 0.1);
    backdrop-filter: blur(10px); animation: slideInDown 0.4s ease-out;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
}

.sidebar h4 {
    font-weight: 900; letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.sidebar a {
    color: rgba(255, 255, 255, 0.7); font-weight: 600;
    transition: all 0.3s ease; border-radius: 12px; margin-bottom: 0.5rem;
    position: relative;
}

.sidebar a.active {
    color: var(--white);
    background: linear-gradient(135deg, rgba(10, 102, 255, 0.2) 0%, rgba(10, 102, 255, 0.1) 100%);
    box-shadow: inset 0 0 20px rgba(10, 102, 255, 0.15); border-left: 3px solid var(--primary);
}

.sidebar a:hover {
    color: var(--white); background: rgba(10, 102, 255, 0.1);
    transform: translateX(6px);
}

.dashboard-card {
    border-radius: 16px; border: 1px solid rgba(10, 102, 255, 0.1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); overflow: hidden;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-6px);
    border-color: rgba(10, 102, 255, 0.2);
}

.dashboard-card h6 {
    color: var(--text-secondary); font-size: 0.8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
}

.dashboard-card .display-6 {
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-size: 2.8rem;
}

.table { margin-bottom: 0; }

.table thead th {
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, rgba(235, 242, 255, 0.5) 100%);
    font-weight: 800; color: var(--primary);
    border: 1px solid rgba(10, 102, 255, 0.1); padding: 1.2rem;
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px;
}

.table tbody tr {
    border-color: rgba(10, 102, 255, 0.05); transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: var(--primary-ultra-light);
    box-shadow: inset 0 0 10px rgba(10, 102, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS & COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

.card {
    border: 1px solid rgba(10, 102, 255, 0.1); border-radius: 16px;
    box-shadow: var(--shadow-md); background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px); transition: all 0.3s ease;
}

.card:hover { box-shadow: var(--shadow-lg); border-color: rgba(10, 102, 255, 0.2); }

.card-header {
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, rgba(235, 242, 255, 0.5) 100%);
    border-bottom: 1px solid rgba(10, 102, 255, 0.1);
    font-weight: 800; color: var(--primary);
}

.card-body { padding: 1.8rem; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.pagination .page-link {
    border-color: rgba(10, 102, 255, 0.1); color: var(--primary);
    background: transparent; font-weight: 700; border-radius: 8px;
    margin: 0 0.2rem; transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary); border-color: var(--primary); color: var(--white);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary); box-shadow: 0 4px 12px rgba(10, 102, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   LISTS & BADGES
   ═══════════════════════════════════════════════════════════════ */

.list-group {
    border: 1px solid rgba(10, 102, 255, 0.1); border-radius: 14px; overflow: hidden;
}

.list-group-item {
    border-color: rgba(10, 102, 255, 0.05); background: transparent;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: var(--primary-ultra-light); transform: translateX(4px);
}

.badge {
    border-radius: 999px; font-weight: 700; padding: 0.5rem 1rem;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .sidebar { width: 100% !important; }
    .form-card { margin-bottom: 2rem; }
    .btn-primary-hero, .btn-secondary-hero { padding: 0.9rem 1.8rem; font-size: 0.95rem; }
    .hero-cta { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.4rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .form-card { border-radius: 14px; padding: 1.5rem !important; }
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .table { font-size: 0.9rem; }
}
