* {
    transition: all 0.2s ease-in-out;
}

body {
    background: linear-gradient(135deg, #2A4862 0%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ======================================================
   PREMIUM INPUT
====================================================== */
a {
    text-decoration: none;
}

.text-premium {
    color: #0d1c2a;
}

.premium-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    color: #fff;
    outline: none;
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.premium-input:focus {
    border-color: #2A4862;
    box-shadow: 0 0 20px rgba(42, 72, 98, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

/* ======================================================
   PREMIUM SELECT
====================================================== */

.premium-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    color: #fff;
    appearance: none;
    outline: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.premium-select:focus {
    border-color: #2A4862;
    box-shadow: 0 0 20px rgba(42, 72, 98, 0.3);
}

.premium-select option {
    background: #1A2A3A;
    color: #fff;
}

/* Sizes */
.premium-select-sm {
    padding: 10px 32px 10px 12px;
    font-size: 13px;
    background-size: 10px;
}

.premium-select-lg {
    padding: 16px 48px 16px 20px;
    font-size: 18px;
    background-size: 14px;
}

/* States */
.premium-select-error {
    border-color: rgba(239, 68, 68, 0.5);
}

.premium-select-success {
    border-color: rgba(34, 197, 94, 0.5);
}

.premium-select-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.card-premium {
    background: linear-gradient(135deg, #2A4862 0%, #1A3852 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);

    color: #fff;
    position: relative;
    overflow: hidden;

    transition: all 0.3s ease;
}

/* Hover effect for premium feel */
.card-premium:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 72, 98, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Optional subtle glow overlay */
.card-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
            rgba(42, 72, 98, 0.75),
            transparent 60%);
    pointer-events: none;
}

/* ======================================================
   PREMIUM BUTTON
====================================================== */

.btn-premium {
    background: linear-gradient(135deg, #2A4862 0%, #1A3852 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-outline-premium {
    background: transparent;
    color: #2A4862;
    border: 2px solid #2A4862;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-premium:hover {
    background: linear-gradient(135deg, #2A4862 0%, #1A3852 100%);
    color: #fff;
    border-color: #1A3852;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.btn-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

/* Outline button */
.btn-premium-outline {
    background: transparent;
    border: 2px solid #2A4862;
    color: #2A4862;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-premium-outline:hover {
    background: #2A4862;
    color: #fff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Card hover effects */
.bg-premium {
    background-color: #0F172A !important;
}

.card.bg-secondary {
    transition: all 0.3s ease;
}

.card.bg-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Accordion customization */
.accordion-button:not(.collapsed) {
    background: rgba(108, 124, 122, 0.1) !important;
    color: white !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

.accordion-button::after {
    color: white !important;
    filter: brightness(10);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem !important;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 1.8rem !important;
    }
}

/* ======================================================
   PREMIUM CARD
====================================================== */

.premium-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ======================================================
   CHECKBOX
====================================================== */

.premium-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #2A4862;
}

/* ======================================================
   LINKS
====================================================== */

.premium-link {
    color: #2A4862;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.premium-link:hover {
    color: #3A5A78;
}

.premium-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0%;
    background: #2A4862;
    transition: 0.3s;
}

.premium-link:hover::after {
    width: 100%;
}

/* ======================================================
   ALERTS
====================================================== */

.premium-alert-success {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.30);
    color: #22c55e;
    padding: 12px;
    border-radius: 12px;
}

.premium-alert-error {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.30);
    color: #ef4444;
    padding: 12px;
    border-radius: 12px;
}

/* ======================================================
   SIDEBAR
====================================================== */

.sidebar {

    background: linear-gradient(135deg, #2A4862 0%, #12293d 50%, #07121d 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 100vh;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    text-decoration: none;
}

.sidebar-link:hover {
    color: #fff;
    background: #2A4862;
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, #2A4862 0%, #12293d 50%, #07121d 100%);
    border: 1px solid #2A4862;
}

/* ======================================================
   MAIN CONTENT
====================================================== */

.main-content {
    background: linear-gradient(135deg, #2A4862 0%, #12293d 50%, #07121d 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ======================================================
   DROPDOWN
====================================================== */

.profile-dropdown {
    position: absolute;
    right: 0;
    margin-top: 8px;
    width: 220px;
    background: linear-gradient(135deg, #2A4862 0%, #12293d 50%, #07121d 100%);
    border: 1px solid #2A4862;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    display: none;
}

#menu-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 20px;
    gap: 10px;
}

#menu-items a {
    text-decoration: none;
    color: white;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.profile-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* ======================================================
   BADGE
====================================================== */

.badge-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    border: 2px solid #2D1B3D;
}

/* ======================================================
   UTILITIES
====================================================== */

.text-gradient {
    background: linear-gradient(135deg, #2A4862, #3A5A78);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

form svg {
    height: 30px;
    width: 30px;
}

.text-white-40 {
    color: rgba(255, 255, 255, 0.4);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 0.25rem #2A4862;
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-select option {
    color: #212529;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #2A4862;
}

.btn-primary {
    transition: all 0.3s ease;
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

.z-1 {
    z-index: 1;
}

.flex-1 {
    flex: 1;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.translate-middle-y {
    transform: translateY(-50%);
}

.top-50 {
    top: 50%;
}

.start-0 {
    left: 0;
}

.end-0 {
    right: 0;
}

.position-absolute {
    position: absolute !important;
}

.position-relative {
    position: relative !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.ps-5 {
    padding-left: 3rem !important;
}

.pe-5 {
    padding-right: 3rem !important;
}

/* Sidebar Styles */
.sidebar {
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #2A4862;
    border-radius: 10px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2A4862 0%, #0d1c2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    position: relative;
}

.sidebar-link:hover {
    color: white;
    background: linear-gradient(135deg, #2A4862 0%, #0d1c2a 100%);
    text-decoration: none;
}

.sidebar-link.active {
    color: white;
    background: rgba(42, 72, 98, 0.3);
    border: 1px solid rgb(57, 86, 111);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-link .badge-custom {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.earnings-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

/* Top Header */
.top-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: white;
    transition: all 0.3s ease;
    width: 280px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(42, 72, 98, 0.3);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
    outline: none;
    color: white;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
}

.notification-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #1B3A4B;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(42, 72, 98, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Job Items */
.job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.job-item:hover {
    border-color: rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.status-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    white-space: nowrap;
}

/* Lead Items */
.lead-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.lead-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lead-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
}

/* Activity Tags */
.activity-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.activity-tag:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1045;
}

.sidebar-overlay.show {
    display: block;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .search-input {
        width: 200px;
    }

    .top-header {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .search-input {
        width: 150px;
    }

    .profile-text {
        display: none;
    }

    .top-header {
        padding: 0.5rem 0.75rem;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .premium-card {
        padding: 1rem;
    }

    .job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .job-item .status-badge {
        align-self: flex-start;
    }
}

@media (max-width: 575.98px) {
    .search-input {
        width: 120px;
        font-size: 0.875rem;
    }

    .profile-btn {
        padding: 0.25rem;
    }

    .profile-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lead-item {
        flex-wrap: wrap;
    }

    .activity-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}