/* =================================================
   Project Manager - Professional Modern UI
   ================================================= */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-sidebar: #1e293b;
    --bg-sidebar-dark: #0f172a;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --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);
    
    --sidebar-width: 260px;
    --navbar-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* =================================================
   SIDEBAR
   ================================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-sidebar-dark) 100%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-white);
    text-decoration: none;
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.sidebar-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sidebar-body {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-heading {
    padding: 0.5rem 1.5rem;
    margin: 0.5rem 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1rem 1.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin: 2px 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    font-size: 0.9375rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

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

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.sidebar-nav .nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
    border-left-color: var(--primary);
}

.sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
}

/* =================================================
   MAIN CONTENT AREA
   ================================================= */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navbar */
.top-navbar {
    height: var(--navbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Search Box */
.search-box {
    position: relative;
    width: 320px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    height: 44px;
    padding: 0 1rem 0 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

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

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Theme Toggle & Nav Buttons */
.theme-toggle,
.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-body);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    position: relative;
    transition: all 0.2s;
}

.theme-toggle:hover,
.nav-icon-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Menu */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.user-menu-btn:hover {
    background: var(--bg-body);
}

.user-menu-btn span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.user-menu-btn i {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.user-avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.user-avatar-xs { width: 26px; height: 26px; font-size: 0.625rem; }
.user-avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }

/* =================================================
   PAGE CONTENT
   ================================================= */
.page-content {
    flex: 1;
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.375rem;
    letter-spacing: -0.02em;
}

.page-header p,
.page-header .text-muted {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

/* =================================================
   STAT CARDS
   ================================================= */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bg-primary-subtle { background: rgba(99, 102, 241, 0.12) !important; }
.bg-success-subtle { background: rgba(34, 197, 94, 0.12) !important; }
.bg-warning-subtle { background: rgba(245, 158, 11, 0.12) !important; }
.bg-danger-subtle { background: rgba(239, 68, 68, 0.12) !important; }
.bg-info-subtle { background: rgba(14, 165, 233, 0.12) !important; }

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =================================================
   CARDS
   ================================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5,
.card-header .card-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
}

/* Epic Card Hover Effects */
.epic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

.epic-card .dropdown {
    position: relative;
    z-index: 10;
}

.epic-card .dropdown button {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.epic-card:hover .dropdown button {
    opacity: 1;
}

.epic-card .card-body {
    color: var(--text-primary);
}

/* =================================================
   TABLES
   ================================================= */
.table {
    color: var(--text-primary);
    margin-bottom: 0;
    width: 100%;
}

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

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

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

.table-hover tbody tr:hover {
    background: var(--bg-body);
}

.issue-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.issue-link:hover {
    color: var(--primary);
}

.issue-key {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    white-space: nowrap;
}

/* =================================================
   BUTTONS
   ================================================= */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn i {
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

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

.btn-light {
    background: var(--bg-body);
    border-color: var(--border-color);
    color: var(--text-primary);
}

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

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* =================================================
   BADGES
   ================================================= */
.badge {
    font-weight: 600;
    padding: 0.375em 0.75em;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* Status badges */
.status-badge, .priority-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    padding: 0.375em 0.75em;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.status-open, .status-todo, .status-badge.status-open, .status-badge.status-todo { background: #e0f2fe; color: #0369a1; }
.status-in_progress, .status-badge.status-in_progress { background: #fef3c7; color: #b45309; }
.status-in_review, .status-badge.status-in_review { background: #e0e7ff; color: #4338ca; }
.status-blocked, .status-badge.status-blocked { background: #fee2e2; color: #b91c1c; }
.status-done, .status-closed, .status-badge.status-done, .status-badge.status-closed { background: #dcfce7; color: #15803d; }

.priority-badge.priority-critical, .priority-critical { background: #fee2e2; color: #b91c1c; }
.priority-badge.priority-high, .priority-high { background: #ffedd5; color: #c2410c; }
.priority-badge.priority-medium, .priority-medium { background: #fef3c7; color: #b45309; }
.priority-badge.priority-low, .priority-low { background: #f3e8ff; color: #6d28d9; }
.priority-badge.priority-none, .priority-none { background: #f1f5f9; color: #64748b; }

/* =================================================
   FORMS
   ================================================= */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

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

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.form-floating > .form-control {
    height: 3.5rem;
    padding: 1rem;
}

.form-floating > label {
    padding: 1rem;
    color: var(--text-muted);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =================================================
   DROPDOWNS
   ================================================= */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    background: var(--bg-card);
    min-width: 200px;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background: var(--bg-body);
    color: var(--text-primary);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    color: var(--text-muted);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

.dropdown-header {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.notification-dropdown {
    width: 360px;
    padding: 0;
}

.notification-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.notification-item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:hover {
    background: var(--bg-body);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-content p {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =================================================
   KANBAN BOARD
   ================================================= */
.kanban-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    min-height: calc(100vh - 200px);
}

.kanban-column {
    min-width: 320px;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-body);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.kanban-column-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.kanban-column-header .count {
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.kanban-column-body {
    flex: 1;
    padding: 0.75rem;
    min-height: 250px;
    overflow-y: auto;
}

.kanban-column-body.drag-over {
    background: rgba(99, 102, 241, 0.05);
}

.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: grab;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.kanban-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.6;
    transform: rotate(3deg) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.kanban-card-key {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(99, 102, 241, 0.08);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.kanban-card-title {
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}

/* =================================================
   PROJECT CARDS
   ================================================= */
.project-card {
    transition: all 0.2s;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.project-key {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
}

/* =================================================
   ALERTS
   ================================================= */
.alert {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    border: none;
    font-size: 0.9375rem;
}

.alert-success { background: #dcfce7; color: #15803d; }
.alert-danger { background: #fee2e2; color: #b91c1c; }
.alert-warning { background: #fef3c7; color: #b45309; }
.alert-info { background: #dbeafe; color: #1d4ed8; }

/* =================================================
   AUTH PAGES
   ================================================= */
.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
}

@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    .auth-decoration {
        display: none;
    }
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.auth-form .form-floating {
    margin-bottom: 1.25rem;
}

.auth-form .form-floating > .form-control {
    height: 56px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
}

.auth-form .form-floating > .form-control:focus {
    border-color: var(--primary);
}

.auth-form .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

.auth-link {
    color: var(--primary);
    font-weight: 500;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.oauth-buttons .btn {
    height: 52px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
}

.oauth-buttons .btn:hover {
    border-color: var(--text-secondary);
    background: var(--bg-body);
}

.auth-decoration {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.auth-decoration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.decoration-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 420px;
}

.decoration-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.decoration-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
}

.feature-list li i {
    color: #a5f3fc;
}

/* =================================================
   MODALS
   ================================================= */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* =================================================
   CHARTS
   ================================================= */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* =================================================
   EMPTY STATE
   ================================================= */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h4 {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9375rem;
    max-width: 300px;
    margin: 0 auto;
}

/* =================================================
   UTILITIES
   ================================================= */
.text-muted { color: var(--text-muted) !important; }
.fw-semibold { font-weight: 600; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

.row.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }

/* Hover effects */
.hover-bg {
    transition: all 0.2s ease;
}

.hover-bg:hover {
    background-color: var(--bg-body);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =================================================
   RESPONSIVE
   ================================================= */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .search-box {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Breadcrumb mobile fixes */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    .breadcrumb-item {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* =================================================
   PRINT
   ================================================= */
@media print {
    .sidebar, .top-navbar, .btn, .dropdown {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
    }
}

/* =================================================
   JIRA-LIKE STYLING FOR ISSUES
   ================================================= */

/* Issue key styling */
.issue-key-large {
    font-size: 0.875rem;
    font-weight: 700;
    color: #5e6c84;
    padding: 0.35rem 0.65rem;
    background: #f4f5f7;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.02em;
}

/* Label badges - Jira style */
.label-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.15s ease;
    text-transform: none;
    line-height: 1.4;
}

.label-badge:hover {
    filter: brightness(0.95);
}

/* Detail rows - Jira sidebar style */
.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-row {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.15s ease;
}

.detail-row:hover {
    background: var(--bg-body);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
}

.detail-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Issue content styling */
.issue-description,
.issue-content {
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.issue-content {
    white-space: pre-wrap;
}

/* User avatar styling */
.user-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Badge outline styles for issue types */
.badge-outline-bug {
    background: #ffebe9 !important;
    color: #bf2600 !important;
    border: 1px solid #ffbdad !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-outline-feature {
    background: #fff7e6 !important;
    color: #974f0c !important;
    border: 1px solid #ffc400 !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-outline-story {
    background: #e3fcef !important;
    color: #006644 !important;
    border: 1px solid #79f2c0 !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-outline-task {
    background: #deebff !important;
    color: #0747a6 !important;
    border: 1px solid #b3d4ff !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Jira-style detail rows */
.jira-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jira-detail-row {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f4f5f7;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
    align-items: center;
}

.jira-detail-row:hover {
    background: #fafbfc;
}

.jira-detail-row:last-child {
    border-bottom: none;
}

.jira-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5e6c84;
    text-transform: capitalize;
}

.jira-detail-value {
    font-size: 0.875rem;
    color: #172B4D;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Card improvements */
.card {
    border: 1px solid #dfe1e6;
}

.card-header {
    background: #f4f5f7;
    border-bottom: 1px solid #dfe1e6;
}

.shadow-sm {
    box-shadow: 0 1px 1px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31) !important;
}

/* Page header improvements */
.page-header {
    background: white;
    border: 1px solid #dfe1e6;
    box-shadow: 0 1px 1px rgba(9, 30, 66, 0.25);
}

/* Enhanced status badges with icons */
.status-badge {
    border: none;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-badge.status-backlog {
    background: #dfe1e6;
    color: #42526e;
}

.status-badge.status-code_review {
    background: #fff0b3;
    color: #ff991f;
}

/* Enhanced priority badges */
.priority-badge {
    font-weight: 700;
    border: none;
}

/* Project badge styling */
.project-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border: 2px solid;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Card header enhancements */
.card-header h5,
.card-header h6 {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h5 i,
.card-header h6 i {
    color: var(--text-muted);
}

/* Page header improvements */
.page-header {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Issue title styling */
.issue-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Attachment card styling */
.attachment-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.attachment-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.attachment-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.attachment-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.attachment-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Comment styling */
.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-body {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Activity timeline */
.activity-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

/* Label checkbox styling for edit form */
.label-checkbox {
    cursor: pointer;
    user-select: none;
}

.label-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.label-checkbox input[type="checkbox"]:checked + .label-badge {
    box-shadow: 0 0 0 2px currentColor;
    font-weight: 700;
}

.label-checkbox:hover .label-badge {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
