/*
* dr. REVOLITA - Modern Styles
* Unified CSS for Welcome and Login pages
*/

:root {
    --primary-blue: #1fbff4;
    --primary-yellow: #ffc516;
    --primary-dark: #1c1d3f;
    --primary-pink: #f82fc2;
    --soft-gray: #f8faff;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: var(--soft-gray);
    overflow-x: hidden;
    color: #64748b;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Glassmorphism Navbar */
.site-header__header-two .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.header-navigation ul.navigation-box>li>a {
    color: var(--primary-dark) !important;
    font-weight: 600;
    font-size: 16px;
}

.header-navigation ul.navigation-box>li.current>a,
.header-navigation ul.navigation-box>li:hover>a {
    color: var(--primary-blue) !important;
    text-shadow: none !important;
}

/* Modern Buttons */
.thm-btn {
    border-radius: 50px;
    font-weight: 700;
    padding: 12px 30px;
    box-shadow: 0 10px 20px -10px rgba(31, 191, 244, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.thm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(31, 191, 244, 0.6);
}

.header__cta-btn2 {
    border: 2px solid var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    background: transparent !important;
}

.header__cta-btn2:hover {
    background: var(--primary-blue) !important;
    color: #fff !important;
}

/* Hero Section */
.banner-two {
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fe 100%);
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

/* Background Bloom Support */
.banner-two::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 197, 22, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    left: -100px;
    z-index: 0;
    border-radius: 50%;
}

.banner-two::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(31, 191, 244, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: 0;
    right: 0;
    z-index: 0;
    border-radius: 50%;
}

.banner-two__content {
    position: relative;
    z-index: 2;
}

.banner-two__title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.banner-two__text {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.8;
}

.banner-two__btn {
    background: linear-gradient(45deg, var(--primary-yellow), #ffd64a) !important;
    color: var(--primary-dark) !important;
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Floating Animation for Hero Image */
.hero-image-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(28, 29, 63, 0.08);
}

.feature-card__icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.bg-blue-light {
    background: #e0f7ff;
    color: var(--primary-blue);
}

.bg-pink-light {
    background: #ffe0f5;
    color: var(--primary-pink);
}

.bg-yellow-light {
    background: #fff8d6;
    color: #ffb300;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Schedule Box */
.schedule-box {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-blue);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: 700;
    color: var(--primary-dark);
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    font-size: 15px;
}

.footer-widget__title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-widget__links li {
    margin-bottom: 12px;
}

.footer-widget__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-widget__links a:hover {
    color: var(--primary-yellow);
    padding-left: 5px;
}

/* Responsive Welcome Page */
@media (max-width: 991px) {
    .banner-two {
        padding-top: 140px;
        text-align: center;
        min-height: auto;
    }

    .banner-two__text {
        margin: 0 auto 30px auto;
    }

    .hero-image-container {
        margin-top: 50px;
    }

    .banner-two__title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* =========================================
   LOGIN PAGE SPECIFIC STYLES
   ========================================= */

body.login-body {
    background-color: #fff;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    height: 100vh;
}

/* Left Side (Form) */
.login-form-col {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.brand-logo {
    width: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
}

.login-title {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #64748b;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.login-wrapper .form-group label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.login-wrapper .form-control {
    border-radius: 12px;
    border: 2px solid #eef2f6;
    padding: 12px 15px;
    height: auto;
    font-weight: 500;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    background-color: #f8faff;
}

.login-wrapper .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(31, 191, 244, 0.1);
    background-color: #fff;
}

.btn-login {
    background: linear-gradient(45deg, var(--primary-blue), #2196f3);
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(31, 191, 244, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(31, 191, 244, 0.6);
    color: #fff;
}

/* Right Side (Image/Gradient) */
.login-image-col {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 60px;
}

.login-image-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(28, 29, 63, 0.85) 0%, rgba(31, 191, 244, 0.8) 100%);
    z-index: 1;
}

.login-image-content {
    position: relative;
    z-index: 2;
    text-align: right;
    color: #fff;
    max-width: 600px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    display: inline-block;
}

.instansi-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.instansi-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.floating-logo {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    margin-bottom: 2rem;
    max-height: 120px;
    width: auto;
}

/* Responsive Login */
@media (max-width: 768px) {
    .login-image-col {
        display: none;
    }
}


/* =========================================
   DASHBOARD / HOME PAGE STYLES
   ========================================= */

/* Dashboard Header Card */
.dashboard-header-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fe 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.dashboard-header-card .card-body {
    position: relative;
    z-index: 2;
    padding: 3rem;
}

/* Background decoration for header */
.dashboard-header-card::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(31, 191, 244, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.dashboard-header-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-header-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* Modern Info Box */
.modern-info-box {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    min-height: 120px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.modern-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(31, 191, 244, 0.15);
}

.modern-info-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 20px;
    color: #fff;
    flex-shrink: 0;
}

/* Gradients for icons */
.bg-gradient-info-modern {
    background: linear-gradient(135deg, #1fbff4 0%, #0d96c4 100%);
    box-shadow: 0 8px 16px -4px rgba(31, 191, 244, 0.5);
}

.bg-gradient-success-modern {
    background: linear-gradient(135deg, #2dce89 0%, #2dcecc 100%);
    box-shadow: 0 8px 16px -4px rgba(45, 206, 137, 0.5);
}

.bg-gradient-warning-modern {
    background: linear-gradient(135deg, #ffc516 0%, #ff9f16 100%);
    box-shadow: 0 8px 16px -4px rgba(255, 197, 22, 0.5);
}

.bg-gradient-danger-modern {
    background: linear-gradient(135deg, #f82fc2 0%, #e600a5 100%);
    box-shadow: 0 8px 16px -4px rgba(248, 47, 194, 0.5);
}

.modern-info-content {
    flex-grow: 1;
}

.modern-info-text {
    display: block;
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 5px;
}

.modern-info-number {
    display: block;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

/* Modern Card for Charts */
.modern-card {
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: none;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.modern-card.elevation-2 {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    /* Override AdminLTE shadow */
}

/* =========================================
   SIDEBAR & NAVIGATION STYLES
   ========================================= */

/* Main Sidebar Container */
.main-sidebar,
.main-sidebar::before {
    background-color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05) !important;
    border-right: none !important;
}

/* Brand Link */
.brand-link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    background-color: #fff !important;
}

.brand-text {
    font-weight: 800 !important;
    color: var(--primary-dark) !important;
    font-size: 1.1rem;
}

/* User Panel */
.user-panel {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.user-panel .info a {
    color: var(--primary-dark) !important;
    font-weight: 600;
}

/* Navigation Links - Pill Shape */
.nav-sidebar .nav-item {
    margin-bottom: 5px;
    padding: 0 10px;
}

.nav-sidebar .nav-link {
    border-radius: 50px !important;
    color: #64748b !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
}

.nav-sidebar .nav-link i {
    color: #94a3b8;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.nav-sidebar .nav-link:hover {
    background-color: #fff0f9 !important;
    transform: translateX(5px);
    color: var(--primary-pink) !important;
}

.nav-sidebar .nav-link:hover i {
    color: var(--primary-pink);
}

/* Active State */
.nav-sidebar .nav-link.active {
    background: linear-gradient(45deg, var(--primary-pink), #d61c9f) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(248, 47, 194, 0.4);
}

.nav-sidebar .nav-link.active i {
    color: #fff !important;
}

/* Treeview Menu */
.nav-treeview {
    background: transparent !important;
    margin-top: 5px;
}

.nav-treeview .nav-link {
    padding-left: 45px;
    font-size: 0.9rem;
}

.nav-treeview .nav-link.active {
    background: rgba(248, 47, 194, 0.1) !important;
    color: var(--primary-pink) !important;
    box-shadow: none;
}

/* =========================================
   MODERN DATA TABLES & FORMS
   ========================================= */

/* Modern Table */
.modern-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent;
    width: 100%;
}

.modern-table thead th {
    background: linear-gradient(45deg, var(--primary-dark), #2c2e5e);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    padding: 15px;
    border: none;
}

.modern-table thead th:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.modern-table thead th:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.modern-table tbody tr {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 191, 244, 0.1);
    z-index: 10;
    position: relative;
}

.modern-table tbody td {
    padding: 15px;
    border: none;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.01);
    border-bottom: 1px solid rgba(0, 0, 0, 0.01);
}

.modern-table tbody tr td:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-left: 1px solid rgba(0, 0, 0, 0.01);
}

.modern-table tbody tr td:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.01);
}

/* Pagination Modern */
.pagination-footer .page-item .page-link {
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    color: var(--primary-dark);
    font-weight: 600;
}

.pagination-footer .page-item.active .page-link {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 5px 15px rgba(31, 191, 244, 0.4);
}

/* Modern Form Controls */
.modern-form-control {
    border: 2px solid #eef2f6;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fcfdff;
    color: var(--primary-dark);
}

.modern-form-control:focus {
    border-color: var(--primary-blue);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(31, 191, 244, 0.1);
}

.modern-form-label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Filter Inputs in Table Header */
.modern-table input.form-control,
.modern-table select.form-control {
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.modern-table input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.modern-table input.form-control:focus,
.modern-table select.form-control:focus {
    background: #fff;
    color: var(--primary-dark);
}

/* Small Button Variant */

/* =========================================
   MODERN NAVBAR & LOGOUT
   ========================================= */

.modern-navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease;
}

.modern-navbar .nav-link {
    color: #64748b !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-navbar .nav-link:hover {
    color: var(--primary-pink) !important;
}

/* User Profile Link in Navbar */
.modern-navbar .nav-link .fa-user {
    color: var(--primary-blue);
    margin-right: 5px;
}

/* Logout Link Style */
.logout-link {
    color: #ef4444 !important;
    /* Red color for logout */
    font-weight: 700 !important;
    display: flex;
    align-items: center;
}

.logout-link:hover {
    background-color: #fee2e2;
    border-radius: 20px;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.logout-link i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logout-link:hover i {
    transform: translateX(3px);
}