:root {
    --sidebar-width: 250px;
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --sidebar-active: #1abc9c;
    --header-height: 56px;
    --primary: #3498db;
}

/* Sidebar */
.lms-wrapper {
    display: flex;
    min-height: 100vh;
}

.lms-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #ecf0f1;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.lms-sidebar-brand {
    padding: 16px 20px;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    display: block;
}

.login-logo {
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

.lms-sidebar-nav {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.lms-sidebar-nav .nav-label {
    padding: 12px 20px 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7f8c8d;
}

.lms-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.lms-sidebar-nav a:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.lms-sidebar-nav a.active {
    background: var(--sidebar-hover);
    color: #fff;
    border-left-color: var(--sidebar-active);
}

.lms-sidebar-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main content */
.lms-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    background: #f4f6f9;
}

.lms-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.lms-content {
    padding: 24px;
}

/* Dashboard cards */
.stat-card {
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}

/* Table styles */
.lms-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.lms-table .table {
    margin-bottom: 0;
}

.lms-table .table th {
    background: #f8f9fa;
    border-top: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
}

/* Status badges */
.badge-new { background-color: #3498db; }
.badge-contacted { background-color: #f39c12; }
.badge-qualified { background-color: #9b59b6; }
.badge-proposal { background-color: #e67e22; }
.badge-converted { background-color: #27ae60; }
.badge-lost { background-color: #e74c3c; }

/* Form cards */
.form-card {
    background: #fff;
    border-radius: 8px;
    border: none;
}

/* Login page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .lms-sidebar {
        transform: translateX(-100%);
    }

    .lms-sidebar.show {
        transform: translateX(0);
    }

    .lms-main {
        margin-left: 0;
        width: 100%;
    }
}
