/**
 * Clickup Task Management Portal - Premium Custom Design System
 * Aesthetic: Stripe, Linear, Notion inspired white-theme
 */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --sidebar-width: 260px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.02);
    
    /* Soft status colors */
    --success-soft: #dcfce7;
    --success-text: #15803d;
    --primary-soft: #e0e7ff;
    --primary-text: #4338ca;
    --danger-soft: #fee2e2;
    --danger-text: #b91c1c;
    --warning-soft: #fef9c3;
    --warning-text: #a16207;
}

/* Base Styles */
body {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

.bg-light-theme {
    background-color: var(--bg-light);
}

.text-dark-theme {
    color: var(--text-dark);
}

/* Layout Framework */
.app-container {
    display: flex;
    min-vh: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.app-main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition-smooth);
}

/* Sidebar Styling */
.brand-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-gradient {
    background: var(--primary-gradient);
}

.text-primary-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.avatar {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
}
.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.py-2-5 {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.fs-7 {
    font-size: 0.875rem !important;
}

.fs-8 {
    font-size: 0.75rem !important;
}

.letter-spacing-1 {
    letter-spacing: 0.08em;
}

.nav-link {
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--bg-light);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--primary-soft) !important;
    font-weight: 600;
}

.text-danger-hover:hover {
    color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1020;
    transition: var(--transition-smooth);
}

/* Button & Accent Styling */
.btn-primary-gradient {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-primary-gradient:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    color: #ffffff;
}

.btn-primary-gradient:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Cards & Layout Items */
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.card.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-title-premium {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

/* Badges */
.bg-primary-soft {
    background-color: var(--primary-soft);
    color: var(--primary-text);
}

.bg-success-soft {
    background-color: var(--success-soft);
    color: var(--success-text);
}

.bg-warning-soft {
    background-color: var(--warning-soft);
    color: var(--warning-text);
}

.bg-danger-soft {
    background-color: var(--danger-soft);
    color: var(--danger-text);
}

/* Forms & Inputs */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    outline: none;
}

.form-control[readonly] {
    background-color: var(--border-light);
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* Table Design */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.table-hover tbody tr {
    transition: var(--transition-smooth);
}

.table-hover tbody tr:hover {
    background-color: var(--border-light);
}

/* Stats Cards */
.stat-card-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Login/Register Screens */
.auth-page {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

/* Charts Card Container */
.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

/* Utility classes */
.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Responsiveness constraints */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    
    .app-sidebar.show {
        transform: translateX(0);
    }
    
    .app-main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}
