@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Modern Colors */
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary: #0ea5e9; /* Sky Blue */
    --secondary-hover: #0284c7;
    --dark-bg: #090d16; /* Clean Slate Dark */
    --card-bg: #ffffff;
    --border-color: #f1f5f9; /* Slate 100 */
    --border-accent: #e2e8f0; /* Slate 200 */
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #94a3b8; /* Slate 400 */
    --success: #10b981; /* Emerald 500 */
    --warning: #f59e0b; /* Amber 500 */
    --danger: #ef4444; /* Rose 500 */
    
    /* Box Shadows (Linear / Stripe style) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: #f8fafc; /* Slate 50 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link, .btn, .sidebar-link, .form-label, .table th {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

main {
    flex: 1;
}

/* Glassmorphism Header */
.navbar-custom {
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 1.5rem;
}
.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-custom .navbar-brand span {
    color: #818cf8; /* Electric Indigo brand accent */
}
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Beautiful Premium Cards */
.card-custom {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

/* Metric Display Widgets */
.metric-card {
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.05);
}
.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}
.metric-details h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0;
    opacity: 0.8;
}
.metric-details h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.03em;
}

.bg-primary-grad {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}
.bg-info-grad {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}
.bg-success-grad {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.bg-danger-grad {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.bg-warning-grad {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.bg-dark-grad {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Modern Forms */
.form-control, .form-select {
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background-color: #fff;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}
.form-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

/* Modern Buttons */
.btn {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-custom-primary {
    background: #4f46e5;
    border: 1px solid #4f46e5;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(79, 70, 229, 0.15);
}
.btn-custom-primary:hover {
    background: #3730a3;
    border-color: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    color: white;
}
.btn-custom-secondary {
    background: #0ea5e9;
    border: 1px solid #0ea5e9;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(14, 165, 233, 0.15);
}
.btn-custom-secondary:hover {
    background: #0284c7;
    border-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    color: white;
}
.btn-outline-primary {
    color: #4f46e5;
    border-color: #e0e7ff;
    background: #f8fafc;
}
.btn-outline-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}
.btn-light {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
}
.btn-light:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

/* Tables styling */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}
.table-custom tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}
.table-custom tr:hover {
    background-color: #f8fafc;
}
.table-custom th {
    background-color: #f8fafc !important;
    border-bottom: 1px solid var(--border-accent);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.725rem;
    letter-spacing: 0.05em;
    padding: 12px 16px;
}
.table-custom td {
    padding: 14px 16px;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Badge styling */
.badge-custom {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}
.badge-custom.bg-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}
.badge-custom.bg-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}
.badge-custom.bg-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}
.badge-custom.bg-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15) 0%, rgba(9, 13, 22, 0.02) 60%), linear-gradient(135deg, #090d16 0%, #0f172a 100%);
    color: white;
    padding: 6rem 1.5rem;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}
.hero-title span {
    color: #818cf8; /* Premium Electric Indigo */
}

/* Floating Animation for Graphics */
.floating-graphic {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
    border-radius: 16px;
    max-width: 100%;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* HTML Mockup Window Component styling */
.mockup-window {
    background: #ffffff;
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    text-align: left;
    transition: all 0.3s ease;
}
.mockup-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mockup-dots {
    display: flex;
    gap: 6px;
}
.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mockup-dot-red { background: #ef4444; }
.mockup-dot-yellow { background: #f59e0b; }
.mockup-dot-green { background: #10b981; }
.mockup-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.mockup-body {
    padding: 16px;
    font-size: 0.85rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Icon box styling */
.icon-box-premium {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Step Card Styles */
.step-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color) !important;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.25) !important;
    box-shadow: var(--shadow-lg);
}

/* Custom Footer */
.footer-custom {
    background: #090d16;
    color: rgba(255, 255, 255, 0.5);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    margin-top: auto;
}
.footer-custom a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}
.footer-custom a:hover {
    color: white;
}

/* Detail Labels */
.detail-label {
    font-size: 0.725rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Dashboard UI Layout components */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

/* Sidebar Custom Container */
.sidebar-custom {
    background-color: #090d16 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sidebar active states */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2px;
}
.sidebar-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}
.sidebar-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
.sidebar-link i {
    font-size: 1.1rem;
    margin-right: 12px;
    transition: transform 0.2s ease;
}
.sidebar-link:hover i {
    transform: scale(1.1);
}

/* Modern global table styling for all tables in the app */
.table, .table-custom {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
}
.table th, .table-custom th {
    background-color: #f8fafc !important;
    border-bottom: 1px solid var(--border-accent) !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.725rem !important;
    letter-spacing: 0.05em !important;
    padding: 14px 16px !important;
    border-top: none !important;
}
.table td, .table-custom td {
    padding: 14px 16px !important;
    font-size: 0.875rem !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    background-color: #ffffff !important;
}
.table tr:last-child td, .table-custom tr:last-child td {
    border-bottom: none !important;
}
.table tbody tr, .table-custom tbody tr {
    transition: all 0.2s ease !important;
}
.table tbody tr:hover td, .table-custom tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* Modern Inputs and Forms styling */
.form-control, .form-select, textarea {
    border: 1px solid var(--border-accent) !important;
    border-radius: 10px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}
.form-control:focus, .form-select:focus, textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
    outline: none !important;
}
.form-label {
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0.4rem !important;
}

/* Modern Badges */
.badge {
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.02em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.badge.bg-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}
.badge.bg-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}
.badge.bg-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}
.badge.bg-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}
.badge.bg-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}
.badge.bg-dark {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}
.badge.bg-primary {
    background-color: #e0e7ff !important;
    color: #3730a3 !important;
}

/* Button animations and enhancements */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.65rem 1.25rem !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
.btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}
.btn:active {
    transform: translateY(1px) !important;
}

/* Custom premium buttons overlay */
.btn-primary, .btn-custom-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: 1px solid #4f46e5 !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-custom-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
    border-color: #3730a3 !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
}
.btn-secondary, .btn-custom-secondary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border: 1px solid #0284c7 !important;
    color: #ffffff !important;
}
.btn-secondary:hover, .btn-custom-secondary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #0369a1 !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3) !important;
}
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #059669 !important;
    color: #ffffff !important;
}
.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: 1px solid #dc2626 !important;
    color: #ffffff !important;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #b91c1c !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid #d97706 !important;
    color: #1e293b !important;
}
.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}