/* Modern Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #6366f1;
    --blue-gradient-start: #2541e2;
    --blue-gradient-end: #0f1c75;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --background: #ffffff;
    --sidebar-width: 260px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   LOGIN PAGE - SALESKIP THEME
   ============================================ */

.login-page-saleskip {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: white;
}

.split-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Left Panel - Blue Branding */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--blue-gradient-start) 0%, var(--blue-gradient-end) 100%);
    position: relative;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    overflow: hidden;
}

/* Decorative background elements */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.d-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
}

.d-2 {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    border-color: rgba(255, 255, 255, 0.05);
}

.left-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.big-icon {
    font-size: 64px;
    margin-bottom: 24px;
    color: white;
    display: inline-block;
}

.spin-hover:hover {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.left-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.hero-text {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 400;
}

.left-footer {
    position: absolute;
    bottom: 40px;
    left: 60px;
    font-size: 14px;
    opacity: 0.6;
}

/* Right Panel - Form */
.right-panel {
    flex: 1;
    /* Or set width */
    max-width: 50%;
    /* Ensure strictly half on large screens */
    background: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.right-header {
    position: absolute;
    top: 40px;
    left: 60px;
}

.right-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.login-box {
    margin: auto;
    width: 100%;
    max-width: 420px;
    padding-left: 20px;
    /* Slight offset for visual balance */
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.sub-header {
    color: var(--text-muted);
    font-size: 15px;
}

/* Form Styles */
.saleskip-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-saleskip {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-saleskip label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group-saleskip input {
    width: 100%;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
}

.form-group-saleskip input:focus {
    background: white;
    border-color: var(--text-dark);
    outline: none;
}

.forgot-wrapper {
    text-align: right;
    margin-top: -12px;
}

.forgot-link-saleskip {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.forgot-link-saleskip b {
    color: var(--text-dark);
    text-decoration: underline;
}

.btn-saleskip-black {
    background: #111827;
    color: white;
    padding: 16px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-saleskip-black:hover {
    background: black;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-credit {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Error */
.error-message {
    background: #fef2f2;
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    border-left: 4px solid #ef4444;
}

/* Responsive */
@media (max-width: 1024px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        max-width: 100%;
        padding: 40px;
    }

    .login-box {
        padding: 0;
    }
}


/* ============================================
   DASHBOARD LAYOUT (Unchanged)
   ============================================ */

.dashboard-page {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 24px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-item.active {
    background: #dcfce7;
    color: var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-transform: capitalize;
}

.logout-link {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
}

.logout-link:hover {
    color: var(--danger);
}

/* Main Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.page-title p {
    font-size: 14px;
    color: #64748b;
}

.btn-action {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Dashboard Content */
.dashboard-content {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.metric-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.metric-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.metric-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-info {
    flex: 1;
}

.metric-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 4px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

.upload-area i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-area p {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 13px;
    color: #64748b;
}

/* Task Selection */
.task-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.task-checkbox:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

.task-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.task-label {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

/* Project Grid */
.select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.select-all input {
    accent-color: var(--primary);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.project-item:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

.project-item input {
    accent-color: var(--primary);
}

.project-item span {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

/* Progress Section */
.progress-section {
    margin-bottom: 24px;
}

.progress-bar-wrapper {
    position: relative;
}

.progress-bar-modern {
    height: 12px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.progress-text {
    position: absolute;
    right: 0;
    top: -24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

/* Status Log */
.status-section {
    margin-top: 24px;
}

.status-log-modern {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.status-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    color: #475569;
}

.status-item i {
    color: var(--primary);
    margin-top: 2px;
}

/* Generate Button */
.btn-generate {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-generate:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-generate:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* Download Card */
.download-card {
    margin-top: 24px;
    padding: 32px;
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--primary);
}

.download-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.download-card h4 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 16px;
}

.btn-download {
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}