/* DeskPro - Premium SaaS CSS */

:root {
    --primary-color: #6366f1; /* Indigo modern */
    --secondary-color: #8b5cf6; /* Violet */
    --accent-color: #3b82f6; /* Blue */
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --sidebar-bg: #ffffff;
    --sidebar-text: #475569;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Sidebar */
#sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#sidebar.collapsed {
    width: 80px;
}

#sidebar .sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sidebar .nav-link {
    padding: 12px 20px;
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-md);
    margin: 4px 10px;
    font-weight: 500;
    transition: all 0.2s;
}

#sidebar .nav-link:hover, #sidebar .nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

#sidebar .nav-link i {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

#sidebar.collapsed .nav-text {
    display: none;
}

#sidebar nav {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}

#sidebar nav::-webkit-scrollbar {
    width: 4px;
}

#sidebar nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.sidebar-footer {
    background: var(--sidebar-bg);
    margin-top: auto;
}

/* Main Content */
#main-content {
    margin-left: 260px;
    transition: all 0.3s ease;
    padding: 20px;
}

#main-content.expanded {
    margin-left: 80px;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Form controls */
.form-control, .form-select {
    border-radius: var(--radius-md);
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background-color: #fcfcfc;
}

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

/* Dashboards */
.stats-card {
    border-left: 4px solid var(--primary-color);
}

.stats-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Kanban */
.kanban-board {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 20px;
    min-height: calc(100vh - 200px);
}

.kanban-column {
    min-width: 300px;
    max-width: 300px;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius-lg);
    padding: 15px;
}

.kanban-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    border-top: 3px solid var(--primary-color);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rounded-xl { border-radius: var(--radius-lg) !important; }

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}
