:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --sidebar-width: 250px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    color: var(--text-color);
    padding: 2rem 1rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #eff6ff;
    color: var(--primary-color);
}

.logout-link {
    margin-top: auto;
    color: #ef4444;
}

.logout-link:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

.card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f9fafb;
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 400px;
}

.auth-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-sizing: border-box;
    font-size: 1rem;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Tables */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6b7280;
}

tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active,
.status-resolved,
.status-done {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pending,
.status-open,
.status-todo {
    background-color: #f3f4f6;
    color: #374151;
}

.status-inprogress,
.status-doing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-inreview {
    background-color: #fef3c7;
    color: #92400e;
}

.status-critical {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.kanban-column {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    min-height: 400px;
    border: 1px solid #e5e7eb;
}

.kanban-column h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-count {
    background: #e5e7eb;
    color: #374151;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.kanban-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-card {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.kanban-card h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.kanban-card p {
    margin: 0 0 0.75rem 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.kanban-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.kanban-assignee {
    font-weight: 500;
    color: #374151;
}

.kanban-actions {
    display: flex;
    gap: 0.5rem;
}

.kanban-btn {
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.2s;
}

.kanban-btn:hover {
    background: #eff6ff;
    border-color: var(--primary-color);
}