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

:root {
    --bg-main: #f4f6f9;
    --bg-card: #ffffff;
    --bg-header: #1e1e1e;
    --bg-subheader: #151515;
    --bg-input: #ffffff;
    --primary: #f06595; /* Pink brand color */
    --primary-gradient: linear-gradient(135deg, #f06595 0%, #cc5de8 100%);
    --accent: #339af0;
    --text-main: #212529;
    --text-muted: #868e96;
    --border: #e9ecef;
    --success: #0ca678;
    --error: #f03e3e;
    --warning: #f59f00;
    --info: #1098ad;
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;
    --radius: 6px; /* Sleek square-ish corners matching WHMCS style */
    --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.05);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f3f5;
}
::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Header Utilities */
.top-contact-bar {
    background-color: var(--bg-subheader);
    color: #ced4da;
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-contact-left {
    display: flex;
    gap: 20px;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-contact-item a:hover {
    color: #ffffff;
}

/* Main Navbar */
.navbar {
    background-color: var(--bg-header);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    color: #ffffff;
}

.navbar-brand {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.navbar-brand span.pink {
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.navbar-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-link {
    padding: 0 15px;
    color: #adb5bd;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.navbar-link:hover, .navbar-link.active {
    color: #ffffff;
}

.navbar-link.active {
    border-bottom-color: var(--primary);
}

/* Navbar Profile */
.navbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #ced4da;
    position: relative;
    padding: 5px 10px;
    border-radius: 4px;
}

.navbar-profile:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary);
}

.profile-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.profile-name {
    font-weight: 600;
    color: #ffffff;
}

.profile-balance {
    font-size: 11px;
    color: var(--success);
}

/* Page Layout */
.page-container {
    width: 100%;
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
}

.page-header-title {
    font-size: 24px;
    color: #495057;
    margin-bottom: 5px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.breadcrumb a:hover {
    color: var(--text-main);
}

/* 2FA Banner */
.tfa-banner {
    background-color: #1098ad;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.tfa-btn {
    background-color: #ffffff;
    color: #1098ad;
    border: none;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

.tfa-btn:hover {
    background-color: #f1f3f5;
}

/* Dashboard Grid */
.dashboard-grid-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.dashboard-left-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Top widgets row */
.top-widgets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.widget-card {
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 120px;
}

.widget-balance-card {
    background-color: #f59f00; /* Warm yellow/orange */
    color: #ffffff;
    position: relative;
}

.widget-balance-title {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.widget-balance-val {
    font-size: 28px;
    font-family: var(--font-title);
    font-weight: 700;
    margin-top: 4px;
}

.widget-balance-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.widget-balance-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.widget-unpaid-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.widget-unpaid-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.widget-unpaid-val {
    font-size: 28px;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

.widget-telegram-card {
    background-color: #339af0; /* Blue Telegram */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    gap: 8px;
    height: 120px;
}

.widget-telegram-card:hover {
    opacity: 0.95;
}

.telegram-icon {
    font-size: 24px;
}

/* Middle Stats Metric Card */
.middle-metric-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    position: relative;
}

.middle-metric-card::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: var(--border);
}

.metric-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.metric-val {
    font-size: 30px;
    font-family: var(--font-title);
    font-weight: 600;
    color: #495057;
}

.metric-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-icon {
    width: 44px;
    height: 44px;
    opacity: 0.4;
    margin-top: 5px;
}

/* Bottom Stats Row */
.bottom-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.progress-stat-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.progress-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.progress-stat-card.success::after { background-color: var(--success); }
.progress-stat-card.inprocess::after { background-color: var(--warning); }
.progress-stat-card.failed::after { background-color: var(--error); }

.progress-stat-val {
    font-size: 26px;
    font-family: var(--font-title);
    font-weight: 700;
    color: #495057;
    margin-bottom: 12px;
}

.progress-stat-desc {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Right Announcements sidebar */
.announcements-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 535px;
}

.announcements-title {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.announcement-item {
    font-size: 12px;
    line-height: 1.5;
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 12px;
}

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

.announcement-text {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.announcement-date {
    color: var(--text-muted);
    font-size: 10px;
}

/* Card Styling for Sub-pages (Orders, Add Funds, Settings) */
.card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    font-weight: 600;
    color: #495057;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid #ced4da;
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: #4f46e5;
}

select.form-control {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23495057' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    appearance: none;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    transition: all 0.15s ease-in-out;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #e64980;
}

.btn-secondary {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

.btn-success {
    background-color: var(--success);
    color: #ffffff;
}

.btn-success:hover {
    opacity: 0.9;
}

/* Tables styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #495057;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 14px;
    font-weight: 600;
    color: #495057;
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.table tr:hover td {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.badge-pending { background-color: #fff9db; color: #f59f00; border: 1px solid #ffe3e3; }
.badge-inprocess { background-color: #e7f5ff; color: #228be6; border: 1px solid #d0ebff; }
.badge-success { background-color: #ebfbee; color: #40c057; border: 1px solid #d3f9d8; }
.badge-rejected { background-color: #fff5f5; color: #fa5252; border: 1px solid #ffe3e3; }

/* Alert Box */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #ebfbee;
    border-color: #d3f9d8;
    color: #2b8a3e;
}

.alert-danger {
    background-color: #fff5f5;
    border-color: #ffe3e3;
    color: #c92a2a;
}

/* Grid helper */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

/* API Info */
.api-details-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.api-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.api-details-row:last-child {
    border-bottom: none;
}

.api-details-label {
    font-weight: 600;
    color: #495057;
}

.api-details-value {
    font-family: monospace;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Custom layout headers */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Footer Section */
.footer-wrapper {
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
    color: #495057;
}

.footer-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col-title {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background-color: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    font-size: 14px;
}

.social-icon:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Auth Page overrides */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    padding: 20px;
}

.auth-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    text-align: center;
}

.auth-logo {
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    display: inline-block;
}

.auth-logo span {
    color: var(--primary);
}

/* Responsive Utilities */
@media(max-width: 991px) {
    .dashboard-grid-layout {
        grid-template-columns: 1fr;
    }
    .announcements-card {
        height: auto;
        max-height: 400px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media(max-width: 768px) {
    .top-widgets-row {
        grid-template-columns: 1fr;
    }
    .middle-metric-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .middle-metric-card::after {
        display: none;
    }
    .bottom-stats-row {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .top-contact-bar {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 8px;
    }
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    .navbar-menu {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .navbar-item {
        width: 100%;
    }
    .navbar-link {
        width: 100%;
        justify-content: center;
        padding: 8px 0;
    }
}

/* Hover Dropdown Menus for Navbar */
.navbar-menu li.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-menu li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: var(--bg-header);
    min-width: 185px;
    list-style: none;
    padding: 8px 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
}

.navbar-menu li.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-menu li.dropdown .dropdown-menu li {
    width: 100%;
}

.navbar-menu li.dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: #adb5bd;
    white-space: nowrap;
    text-align: left;
    transition: all 0.15s ease;
}

.navbar-menu li.dropdown .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Caret indicator icon */
.navbar-menu li.dropdown > a::after {
    content: ' ▾';
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.7;
}
