
/* --- UI/UX Premium Design (Enhanced) --- */

/* 1. Background (Blue/Purple Mesh) */
body.login_page {
    background: linear-gradient(-45deg, #4f46e5, #7c3aed, #2563eb, #0ea5e9) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite !important;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Placeholder Styling */
::placeholder {
    color: #94a3b8 !important;
    opacity: 0.8;
}

/* 3. Sleek Form Elements */
.login-form input.form-control {
    background: #f8fafc !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    height: 52px !important;
    color: #1e293b !important;
    transition: all 0.3s ease !important;
}

.login-form input.form-control:focus {
    background: #ffffff !important;
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15) !important;
}

/* 4. Primary Animated Button (Sign In) */
.login-form button[type="submit"] {
    background: linear-gradient(to right, #7c3aed, #2563eb) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-weight: 700 !important;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* 5. Secondary Button Styling (Register / Back) */
.btn-secondary-custom {
    background: rgba(241, 245, 249, 1) !important;
    color: #475569 !important; /* Professional Slate Grey */
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-weight: 600 !important;
    margin-top: 10px;
    transition: all 0.3s ease !important;
}

.btn-secondary-custom:hover {
    background: #ffffff !important;
    color: #7c3aed !important; /* Turns purple on hover */
    border-color: #7c3aed !important;
    transform: translateY(-1px);
}

/* 6. Header Styling (Black Text) */
nav.navbar.header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

nav.navbar.header .navbar-nav > li > a {
    color: #000000 !important;
    font-weight: 700 !important;
}
/* --- Unified Premium UI: Purple & Blue Theme --- */

/* 1. Background Animation */
body.authentication.forgot-password, 
body.login_page {
    background: linear-gradient(-45deg, #4f46e5, #7c3aed, #2563eb, #0ea5e9) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite !important;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. The Card (Glassmorphism) */
.login-card, .authentication-form-wrapper > div.tw-bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3) !important;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 3. Typography */
.login-card h2, h1.tw-text-2xl {
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 26px !important;
    text-align: center;
    margin-bottom: 8px !important;
}

/* 4. Inputs & Placeholders */
.form-control {
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    height: 50px !important;
    padding: 10px 16px !important;
    color: #1e293b !important;
}

.form-control:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1) !important;
}

::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

/* 5. Main Button */
.btn-login, .btn-primary {
    background: linear-gradient(to right, #7c3aed, #2563eb) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-weight: 700 !important;
    color: white !important;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-login:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.4) !important;
}

/* 6. Secondary "Back" Button */
.btn-secondary-custom {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #64748b !important;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary-custom:hover {
    color: #7c3aed !important;
    transform: translateX(-4px);
}


/* --- Client Area: Hosting-Style Dashboard Cards --- */

.stat-card {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Color Borders */
.border-green { border-bottom: 4px solid #10b981 !important; }
.border-blue { border-bottom: 4px solid #3b82f6 !important; }
.border-red { border-bottom: 4px solid #ef4444 !important; }
.border-purple { border-bottom: 4px solid #8b5cf6 !important; }

/* Elements inside Card */
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.stat-link {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

/* Specific Colors for text and icons */
.text-green, .icon-green { color: #10b981 !important; }
.text-blue, .icon-blue { color: #3b82f6 !important; }
.text-red, .icon-red { color: #ef4444 !important; }
.text-purple, .icon-purple { color: #8b5cf6 !important; }

.stat-header i {
    font-size: 20px;
    opacity: 0.7;
}

/* --- Global Stat Card Design --- */
.stat-card {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
}

/* Borders to match PutulHost style */
.border-blue { border-bottom: 4px solid #3b82f6 !important; }
.border-red { border-bottom: 4px solid #ef4444 !important; }
.border-green { border-bottom: 4px solid #10b981 !important; }

.icon-blue { color: #3b82f6; }
.icon-red { color: #ef4444; }
.icon-green { color: #10b981; }

.stat-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    padding: 5px 10px;
    background: rgba(0,0,0,0.03);
    border-radius: 6px;
    transition: all 0.2s;
}

.stat-link.text-blue:hover {
    background: #3b82f6;
    color: #fff !important;
}

.stat-link.text-red:hover {
    background: #ef4444;
    color: #fff !important;
}

/* --- Mobile Fixes for Dashboard --- */

@media (max-width: 767px) {
    .stats-grid-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .stat-card {
        padding: 15px !important; /* Smaller padding for mobile */
        margin-bottom: 10px !important;
    }

    .stat-number {
        font-size: 24px !important; /* Smaller text on phones */
    }

    .stat-card .tw-text-lg {
        font-size: 16px !important;
    }
    
    /* Ensure chart doesn't overflow */
    .chart-container {
        height: 250px !important;
    }
}

/* Base Card Styling (Updated for better flex) */
.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}


    .pay-now-table-btn {
        background-color: #10b981 !important;
        border-color: #10b981 !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        padding: 5px 12px !important;
        transition: all 0.2s;
    }
    .pay-now-table-btn:hover {
        background-color: #059669 !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    }
    @media (max-width: 767px) {
        .pay-now-table-btn {
            display: block;
            width: 100%;
            text-align: center;
        }
    }

/* --- 2-Column Mobile Dashboard Fix --- */
@media (max-width: 767px) {
    .stats-grid-container {
        padding: 0 5px !important; /* Reduce container padding */
    }
    
    .stats-grid-container .col-xs-6 {
        padding-left: 5px !important;  /* Tiny gap between cards */
        padding-right: 5px !important;
    }

    .stat-card {
        padding: 12px !important; /* Compact padding for small screens */
        min-height: 140px !important;
        margin-bottom: 10px !important;
    }

    .stat-title {
        font-size: 10px !important; /* Smaller title */
        letter-spacing: 0 !important;
    }

    .stat-number {
        font-size: 20px !important; /* Smaller number to fit 2-column */
        margin-bottom: 2px !important;
    }

    .mobile-amount {
        font-size: 11px !important; /* Ensure currency fits */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat-link {
        font-size: 11px !important;
        margin-top: 8px !important;
    }
    
    .stat-header i {
        font-size: 14px !important; /* Smaller icons */
    }
}

/* --- This is for Help desk --- */

/* Knowledge Base Global Improvements */
.kb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Ensure the main panel doesn't look like a boxy CRM */
.panel_s {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.panel-body {
    padding: 0 !important;
}

/* Typography fix for Inter-like feel */
.kb-category-title, .article-title-link {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.01em;
}

/* Background color for the page to make white cards pop */
body.knowledge-base {
    background-color: #f8fafc !important;
}

/* Category Icon Hover Animation */
.kb-category-card:hover .kb-icon-wrapper i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Article List Divider */
.article-row {
    border-left: 3px solid transparent;
}

.article-row:hover {
    border-left: 3px solid #3b82f6;
}

/* Search Bar Focus Effect */
.kb-search-input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
    outline: none !important;
}

/* Target the specific class you mentioned */
.article-title-link, 
.article-heading,
.kb-article-single-heading {
    font-family: 'Kalpurush', sans-serif !important;
}

/* Global force for the KB section to prevent any leaks */
.section-knowledge-base * {
    font-family: 'Kalpurush', sans-serif !important;
}