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

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --sidebar-bg: #1e293b;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: #6366f1;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --body-bg: #f8fafc;
    --header-bg: #ffffff;
    --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--body-bg);
    color: #1e293b;
    margin: 0;
}

/* Sidebar Styling - Dark & Professional */
#sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    display: flex;
    justify-content: center;
    padding: 5px 0;
}

.sidebar-brand img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

.sidebar-menu {
    padding: 20px 15px;
    list-style: none;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar-menu li a i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.7;
}

.sidebar-menu li.active a,
.sidebar-menu li a:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.sidebar-menu li.active a {
    background: var(--sidebar-active);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.sidebar-menu li.active a i {
    opacity: 1;
}

/* Header Styling - Exact Match to Screenshot */
.global-header {
    background: #f8fafc;
    margin-left: 260px;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 900;
}

.search-row-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 8px 15px 8px 35px;
    width: 100%;
    font-size: 0.95rem;
    color: #4a5568;
}

.search-box i {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

/* Profile Dropdown Icon */
.profile-link {
    cursor: pointer;
    position: relative;
    padding-right: 15px;
}

.status-dot {
    position: absolute;
    right: 0;
    top: 60%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.header-actions-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Call Button (Dark Input Version) */
.phone-group {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.phone-group .input-text {
    background: #2d3135;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 0.9rem;
    border: none;
    min-width: 150px;
}

.phone-group .btn-call {
    background: #6a7afe;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-payment {
    background: #7371fc;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(115, 113, 252, 0.2);
}

.btn-reminders {
    background: #f8fafc;
    border: 1px solid #d1d5db;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main Content Area */
#content {
    margin-left: 260px;
    min-height: 100vh;
}

.page-content {
    padding: 30px;
}

/* Dashboard Cards */
.card {
    border: 1px solid #f1f5f9;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-card {
    padding: 24px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Custom Table */
.table-custom {
    width: 100%;
}

.table-custom thead th {
    background: #f8fafc;
    border-bottom: 2px solid #f1f5f9;
    padding: 15px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-custom tbody td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

/* Auth / Login Page (Equal Split) */
.login-row {
    min-height: 100vh;
}

.login-left {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../img/login-bg.png') no-repeat center center;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-right {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.feature-points {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.feature-point {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.feature-point i {
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #6366f1;
    font-size: 0.9rem;
}

.form-control-custom {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control-custom:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}