:root {
    --bg-color: #121212;
    --sidebar-bg: #0B0B0B;
    --card-bg: #1E1E1E;
    --border-color: #2A2A2A;
    --accent-primary: #FF6D00;
    --accent-hover: #FF8A00;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --success: #00E676;
    --warning: #FFD600;
    --error: #FF5252;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 24px 30px;
}

.logo {
    max-width: 180px;
    height: auto;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px;
}

.nav-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-settings {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.section-settings:hover {
    opacity: 1;
    color: var(--accent-primary);
    transform: rotate(45deg);
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-bottom: 0;
}

.toggle-icon {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.section-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 109, 0, 0.1);
    color: var(--accent-primary);
}


/* Main Content Styling */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--bg-color);
}

#content-area {
    flex: 1;
}

.top-header {
    min-height: 80px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 8px 16px;
    width: 400px;
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 12px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-initials {
    width: 36px;
    height: 36px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.separator {
    color: var(--border-color);
    font-weight: 300;
    font-size: 20px;
    margin: 0 4px;
}

.logout-icon {
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.logout-icon:hover {
    color: var(--accent-primary);
}

/* Dashboard Styles */
.dashboard-wrapper {
    padding: 32px;
}

.dashboard-header h1 {
    font-size: 24px;
    margin-bottom: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive { color: var(--success); }
.stat-change.neutral { color: var(--text-secondary); }

/* Charts Layout */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.chart-actions i {
    color: var(--text-secondary);
    cursor: pointer;
}

/* Wave Graph */
.chart-placeholder {
    height: 200px;
    position: relative;
}

.wave-graph {
    width: 100%;
    height: 100%;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 11px;
    margin-top: 12px;
}

/* Donut Chart Simulation */
.donut-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donut-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-primary) 0% 35%, #2A2A2A 35% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.donut-inner {
    width: 110px;
    height: 110px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-value {
    font-size: 24px;
    font-weight: 700;
}

.donut-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.chart-legend {
    list-style: none;
    width: 100%;
}

.chart-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.youtube { background-color: var(--accent-primary); }
.dot.google { background-color: #5C6BC0; }
.dot.direct { background-color: #9575CD; }
.dot.reddit { background-color: #E0E0E0; }

/* Bottom Row */
.bottom-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.task-card, .table-card {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.progress-text { color: var(--accent-primary); }

.progress-bar-bg {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 24px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: 3px;
}

.task-list {
    list-style: none;
    margin-bottom: 24px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.task-item i {
    color: var(--text-secondary);
}

.task-item.completed i {
    color: var(--accent-primary);
}

.task-item.completed span {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-date {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-secondary);
}

.add-task-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-task-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Table Styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    text-align: left;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding-bottom: 16px;
}

.data-table td {
    padding: 16px 0;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.shipped { background: rgba(255, 214, 0, 0.1); color: var(--warning); }
.status-badge.delivered { background: rgba(0, 230, 118, 0.1); color: var(--success); }
.status-badge.paid { background: rgba(255, 109, 0, 0.1); color: var(--accent-primary); }

/* Form Styling */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none; /* Remove default arrow */
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888' %3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control option {
    background-color: #1a1a1a;
    color: var(--text-primary);
    padding: 12px;
}

.form-control:focus {
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 109, 0, 0.1);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 109, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background-color: rgba(255, 109, 0, 0.05);
}

/* Footer Styling */
.app-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    background-color: var(--bg-color);
}

.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    color: var(--text-secondary);
    font-size: 12px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--error);
}
