:root {
    --bg-dark: #0f1115;
    --bg-dark-secondary: #0f1115;
    --bg-card: #20242c;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --border-color: #2f333c;
    --sidebar-width: 250px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
}

/* Helpers */
.text-gradient {
    background: linear-gradient(to right, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: radial-gradient(circle at center, #1e1b4b 0%, #0f1115 100%);
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.gradient-text {
    background: linear-gradient(to right, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.btn {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

/* Dev Banner */
.dev-banner {
    background-color: var(--warning);
    color: #000;
    font-weight: 700;
    text-align: center;
    padding: 5px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.dev-mode .app-container {
    margin-top: 30px;
    height: calc(100vh - 30px);
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
}

/* Mobile responsive sidebar */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        height: 100%;
        z-index: 50;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
        margin-right: 16px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .kanban-board {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }

    .kanban-column {
        flex: none;
        width: 100%;
        min-height: 200px;
    }
}

.sidebar-nav {
    flex: 1;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
}

.nav-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 12px 0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 40%);
}

.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* Components */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Form Elements */
.form-input,
.form-select {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
}