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

/* =========================================================
   SIPB ULTRA-MODERN UI (GLASSMORPHISM & ANIMATION)
========================================================= */

/* Typography Override & Base Animation */
body, h1, h2, h3, h4, h5, h6, .navbar-nav .nav-link, .brand-text, .nav-sidebar .nav-link, table {
    font-family: 'Outfit', sans-serif !important;
}

/* Page Load Fade-in Transition */
@keyframes fadeInSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.content-wrapper > .content {
    animation: fadeInSlide 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Background SaaS Layout */
body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%) !important;
    overflow-x: hidden; /* Fix horizontal scroll issue */
}
.content-wrapper {
    background-color: transparent !important;
}

/* =========================================================
   GLASSMORPHISM (FROSTED GLASS EFFECT)
========================================================= */
/* Top Navbar */
.main-header.navbar {
    border-bottom: none !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Cards (Glass Effect) */
.card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
}
.card-header {
    background-color: rgba(255, 255, 255, 0.4) !important;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
    padding: 20px 25px;
}
.card-title {
    font-weight: 700 !important;
    color: #1e293b;
    letter-spacing: 0.5px;
}

/* =========================================================
   SIDEBAR REDESIGN
========================================================= */
.main-sidebar {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: none !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.08) !important;
}
.brand-link {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 15px; /* Better alignment */
    padding-bottom: 15px;
}
.brand-text {
    font-weight: 800 !important;
    letter-spacing: 1px;
}
.nav-pills .nav-link {
    border-radius: 8px !important;
    margin-bottom: 6px !important; /* Spacious */
    padding: 10px 15px !important; /* More padding */
    color: rgba(255,255,255,0.85) !important;
    transition: all 0.3s ease;
}
.nav-pills .nav-link:hover, .nav-pills .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #ffffff !important;
    backdrop-filter: blur(5px);
}

/* =========================================================
   DASHBOARD METRIC CARDS (Animated Gradients)
========================================================= */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-info, .bg-success, .bg-primary, .bg-danger {
    background-size: 200% 200% !important;
    animation: gradientMove 5s ease infinite !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
.bg-info { background-image: linear-gradient(135deg, #06b6d4, #3b82f6, #06b6d4) !important; }
.bg-success { background-image: linear-gradient(135deg, #10b981, #059669, #10b981) !important; }
.bg-primary { background-image: linear-gradient(135deg, #6366f1, #4f46e5, #6366f1) !important; }
.bg-danger { background-image: linear-gradient(135deg, #f43f5e, #e11d48, #f43f5e) !important; }

.small-box {
    border-radius: 20px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.small-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}
.small-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
}
.small-box p {
    font-size: 1.1rem;
    font-weight: 500;
}
.small-box .icon {
    top: 5px !important;
    right: 20px !important;
    color: rgba(255,255,255,0.25) !important;
}

/* =========================================================
   FORM INPUTS & PILLS (Ultra-Modern)
========================================================= */
.form-control, .dataTables_filter input {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 15px !important;
    height: auto !important;
    transition: all 0.3s ease;
}
.form-control:focus, .dataTables_filter input:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
    border-color: #4f46e5 !important;
    background: #fff !important;
}

/* Modern Status Badges */
.badge {
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}
.badge-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-danger {
    background-color: rgba(244, 63, 94, 0.15) !important;
    color: #e11d48 !important;
    border: 1px solid rgba(244, 63, 94, 0.2);
}
.badge-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    border-radius: 8px; /* Toned down from 20px pill */
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3) !important;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4) !important;
}
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4) !important;
}

/* Subtle Action Buttons (View, Edit, Delete) in Tables */
.table .btn {
    padding: 4px 10px;
    font-size: 0.85rem;
    box-shadow: none !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}
.table .btn-info { color: #0284c7 !important; background: rgba(14, 165, 233, 0.1) !important; }
.table .btn-info:hover { background: #0ea5e9 !important; color: white !important; }

.table .btn-warning { color: #d97706 !important; background: rgba(245, 158, 11, 0.1) !important; }
.table .btn-warning:hover { background: #f59e0b !important; color: white !important; }

.table .btn-danger { color: #e11d48 !important; background: rgba(244, 63, 94, 0.1) !important; }
.table .btn-danger:hover { background: #f43f5e !important; color: white !important; }

/* =========================================================
   DATATABLES
========================================================= */
table.dataTable thead th {
    border-bottom: 2px solid rgba(0,0,0,0.05) !important;
    color: #475569;
    font-weight: 700;
}
table.dataTable tbody td {
    border-color: rgba(0,0,0,0.02) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 12px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4f46e5 !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* =========================================================
   AUTH PAGES
========================================================= */
.login-page, .register-page {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%) !important;
}
.login-box .card, .register-box .card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1) !important;
}
