/* Reference Dashboard Styles (LeadCore CRM Style) */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 256px;
    background-color: #001f3f !important;
    color: white;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.main-content {
    flex: 1;
    margin-left: 256px;
    padding: 0 1.5rem 1.5rem;
    background: #f4f6f9;
    min-height: 100vh;
}

.sidebar-header {
    min-height: 90px;
    height: auto;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    background-color: #001f3f !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-header img {
    height: 28px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.sidebar-menu {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
    background-color: #001f3f;
}

/* Scrollbar thin for sidebar */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-link {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: rgba(255, 255, 255, 0.72) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.sidebar-link i {
    width: 18px;
    font-size: 0.95rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-left-color: rgba(255, 255, 255, 0.4);
}

.sidebar-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    font-weight: 600;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* Landing Page Styles */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #001f3f;
    text-decoration: none;
}

.logo span {
    color: #198754;
}

.landing-header nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: #444;
    font-weight: 500;
}

.btn-green {
    background: #198754;
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: 0.3s;
}

.hero {
    text-align: center;
    padding: 5rem 10%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero h1 {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: #001f3f !important;
    margin-bottom: 1.5rem !important;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-btns .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    margin: 0 0.5rem;
    border-radius: 6px;
}

.btn-outline {
    border: 2px solid #001f3f;
    color: #001f3f;
}

.features {
    padding: 5rem 10%;
    background: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2.2rem !important;
    margin-bottom: 3rem !important;
    color: #001f3f !important;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
}

/* Login Page Styles */
.login-container {
    display: flex;
    min-height: 100vh;
}

.login-sidebar {
    width: 40%;
    background-color: #001f3f;
    color: white;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-sidebar h1 {
    font-size: 2.5rem !important;
    margin: 2rem 0 !important;
    color: white !important;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.login-form-side {
    width: 60%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.form-wrapper h2 {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
    color: #001f3f !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background: #001f3f;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.logout-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #ffffff !important;
}

/* Main Content Styling */
.main-content {
    flex: 1;
    margin-left: 256px;
    padding: 0 1.5rem 1.5rem;
    background: #f4f6f9;
    min-height: 100vh;
}

/* Data cards */
.data-card {
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
    background: #fff;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.data-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.data-card-value {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.data-card-label {
    font-size: 0.82rem;
}

.text-primary {
    color: #0d6efd !important;
}

.text-cyan {
    color: #0dcaf0 !important;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Colored card variants */
.bg-light-blue {
    background-color: #e7f3ff !important;
}

.bg-light-cyan {
    background-color: #e0f9ff !important;
}

.bg-light-purple {
    background-color: #f3efff !important;
}

.text-cyan {
    color: #0aa2c0 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

/* Utility overrides (Bootstrap not used) */
.bg-white {
    background-color: #ffffff !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-dark {
    color: #212529 !important;
}

.border-0 {
    border: none !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.setting-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-top: 2rem;
    overflow: hidden;
}

.setting-card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #001f3f;
    margin: 0;
}

.setting-card-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
}

.setting-card-body {
    padding: 0;
}

/* Table styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    padding: 1rem 2rem;
    text-align: left;
}

.table tbody td {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #f1f1f1;
    color: #444;
}

.table-hover tbody tr:hover {
    background-color: #fbfcfe;
}

.btn-outline-primary {
    border: 1.5px solid #0d6efd;
    color: #0d6efd;
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

/* Badges from reference */
.badge {
    padding: 0.5em 1em;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.75rem;
}

.bg-success-subtle {
    background-color: #d1e7dd;
    color: #0f5132 !important;
}

.bg-primary-subtle {
    background-color: #cfe2ff;
    color: #084298 !important;
}

.bg-danger-subtle {
    background-color: #f8d7da;
    color: #842029 !important;
}

.bg-warning-subtle {
    background-color: #fff3cd;
    color: #664d03 !important;
}

/* Form Section Styles (Add New Lead Style) */
.form-section {
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #e0e6ed !important;
    margin-bottom: 2rem !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.form-section-header {
    background-color: #e7f3ff !important;
    padding: 0.75rem 1.25rem !important;
    border-bottom: 1px solid #e0e6ed !important;
}

.form-section-header h5 {
    color: #444 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

.form-section-body {
    padding: 1.5rem 1.25rem !important;
    background-color: #ffffff !important;
}

.form-label-caps {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #8898aa !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.5px !important;
}

.form-control-custom {
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    background-color: #ffffff !important;
}

.form-control-custom:focus {
    border-color: #007bff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1) !important;
}

.btn-save-lead {
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.btn-cancel-lead {
    background-color: #ffffff !important;
    color: #666 !important;
    border: 1px solid #dee2e6 !important;
    padding: 1rem 2rem !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.form-title-main {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #001f3f !important;
    margin-bottom: 0 !important;
}
