* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #0d1117; color: #c9d1d9; min-height: 100vh; }

/* Transitions & Animations */
a, button, .menu-item, input, select, textarea { transition: all 0.2s ease; }

.sidebar { position: fixed; left: 0; top: 0; width: 240px; height: 100vh; background: #161b22; border-right: 1px solid #30363d; padding-top: 20px; display: flex; flex-direction: column; overflow: hidden; }
.logo { font-size: 22px; font-weight: bold; color: #e94560; padding: 0 20px 24px; display: flex; align-items: center; gap: 8px; }
.logo span { color: #fff; }
.menu-section { margin-bottom: 24px; }
.menu-title { padding: 8px 20px; color: #8b949e; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: #c9d1d9; text-decoration: none; margin: 2px 10px; border-radius: 6px; }
.menu-item i { font-size: 18px; color: #8b949e; transition: color 0.2s; }
.menu-item:hover, .menu-item.active { background: #21262d; color: #fff; }
.menu-item:hover i, .menu-item.active i { color: #58a6ff; }

.main { margin-left: 240px; padding: 32px; min-height: 100vh; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-header h1 { font-size: 26px; color: #fff; display: flex; align-items: center; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: #e94560; color: #fff; border: none; border-radius: 6px; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 500; }
.btn:hover { background: #d63b54; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-secondary { background: #21262d; border: 1px solid #30363d; }
.btn-secondary:hover { background: #30363d; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-success { background: #238636; }
.btn-success:hover { background: #2ea043; box-shadow: 0 4px 12px rgba(35, 134, 54, 0.2); }
.btn-danger { background: #da3633; }
.btn-danger:hover { background: #f85149; box-shadow: 0 4px 12px rgba(218, 54, 51, 0.2); }

.card { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 24px; margin-bottom: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.card h2 { color: #fff; font-size: 18px; margin-bottom: 20px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h2 i { color: #e94560; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-box { background: #161b22; border: 1px solid #30363d; padding: 24px; border-radius: 8px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.2s; }
.stat-box:hover { transform: translateY(-2px); }
.stat-box .value { font-size: 36px; font-weight: bold; color: #fff; position: relative; z-index: 2; }
.stat-box .label { color: #8b949e; font-size: 14px; margin-top: 8px; position: relative; z-index: 2; }
.stat-icon { position: absolute; right: -10px; bottom: -10px; font-size: 80px; opacity: 0.05; color: #fff; z-index: 1; pointer-events: none; }

table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 14px; text-align: left; border-bottom: 1px solid #21262d; }
th { color: #8b949e; font-size: 12px; text-transform: uppercase; font-weight: 600; background: rgba(33, 38, 45, 0.5); }
th:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
th:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
tr:hover td { background: rgba(33, 38, 45, 0.3); }

.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-open { background: rgba(218, 54, 51, 0.15); color: #ff7b72; border: 1px solid rgba(255, 123, 114, 0.3); }
.badge-progress { background: rgba(88, 166, 255, 0.15); color: #79c0ff; border: 1px solid rgba(121, 192, 255, 0.3); }
.badge-pending { background: rgba(210, 153, 34, 0.15); color: #e3b341; border: 1px solid rgba(227, 179, 65, 0.3); }
.badge-approved, .badge-resolved, .badge-active, .badge-low { background: rgba(35, 134, 54, 0.15); color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.3); }
.badge-closed, .badge-inactive { background: rgba(72, 79, 88, 0.15); color: #8b949e; border: 1px solid rgba(139, 148, 158, 0.3); }
.badge-critical { background: rgba(218, 54, 51, 0.2); color: #ff7b72; border: 1px solid #da3633; }
.badge-high { background: rgba(248, 81, 73, 0.15); color: #ff7b72; border: 1px solid rgba(248, 81, 73, 0.3); }
.badge-medium { background: rgba(210, 153, 34, 0.15); color: #e3b341; border: 1px solid rgba(227, 179, 65, 0.3); }

.empty { padding: 60px 40px; text-align: center; color: #8b949e; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty i { font-size: 48px; opacity: 0.3; }

.form-group { margin-bottom: 20px; }
.form-group label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #c9d1d9; font-size: 13px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; background: #0d1117; border: 1px solid #30363d; color: #fff; border-radius: 6px; outline: none; font-family: inherit; font-size: 14px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #58a6ff; box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2); }
.form-group select[multiple] { height: 160px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.kanban-col { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 16px; min-height: 500px; display: flex; flex-direction: column; gap: 12px; }
.kanban-col h3 { color: #8b949e; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid #30363d; text-transform: uppercase; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.kanban-col h3 .count { background: #21262d; padding: 2px 8px; border-radius: 12px; color: #fff; }
.kanban-card { background: #21262d; padding: 16px; border-radius: 6px; border: 1px solid #30363d; cursor: grab; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.kanban-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); border-color: #58a6ff; }
.kanban-card:active { cursor: grabbing; transform: translateY(0); }
.kanban-card h4 { color: #c9d1d9; font-size: 14px; margin-bottom: 12px; font-weight: 500; line-height: 1.4; }

/* Toast Notifications */
#toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { background: #238636; color: #fff; padding: 16px 24px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 14px; animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; pointer-events: auto; }
.toast.error { background: #da3633; }
.toast i { font-size: 20px; }
.toast.fade-out { animation: fadeOut 0.3s forwards; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* Other components */
.detail-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #30363d; }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: #8b949e; display: flex; align-items: center; gap: 8px; }
.detail-value { color: #fff; font-weight: 500; }
.notification { display: flex; justify-content: space-between; align-items: center; background: #21262d; padding: 16px; margin: 12px 0; border-radius: 8px; border: 1px solid #30363d; transition: transform 0.2s; }
.notification:hover { transform: translateX(4px); border-color: #58a6ff; }
.notification.unread { border-left: 4px solid #e94560; }

.tab-nav { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; background: #161b22; padding: 8px; border-radius: 8px; border: 1px solid #30363d; }
.tab { padding: 10px 20px; border-radius: 6px; text-decoration: none; color: #8b949e; font-weight: 500; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
.tab:hover { background: #21262d; color: #c9d1d9; }
.tab.active { background: #1f6feb; color: #fff; box-shadow: 0 4px 12px rgba(31, 111, 235, 0.2); }

/* Quick select style fix */
select[onchange] { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c9d1d9' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; cursor: pointer; }

/* Details summary styling */
.menu-section summary { outline: none; }
.menu-section summary::-webkit-details-marker { display: none; }
.menu-section[open] .details-arrow { transform: rotate(180deg); }
.details-arrow { transition: transform 0.2s; font-size: 12px; }

/* Custom Scrollbar for Sidebar */
.sidebar-scrollable::-webkit-scrollbar { width: 6px; }
.sidebar-scrollable::-webkit-scrollbar-track { background: transparent; }
.sidebar-scrollable::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
.sidebar-scrollable::-webkit-scrollbar-thumb:hover { background: #8b949e; }