/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fafafa;
    color: #171717;
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.dark-mode {
    background: #0a0a0a;
    color: #ededed;
}

.modal-is-open {
    overflow: hidden;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: #ffffff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.8);
}

body.dark-mode header {
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid #262626;
}

header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #171717;
    letter-spacing: -0.02em;
}

body.dark-mode header h1 {
    color: #ededed;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ============================================
   BUTTONS
   ============================================ */
button, .btn {
    background-color: #171717;
    color: #ffffff;
    border: 1px solid #171717;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    letter-spacing: -0.01em;
}

button:hover, .btn:hover {
    background-color: #404040;
    border-color: #404040;
}

button:active, .btn:active {
    transform: scale(0.98);
}

button:disabled {
    background-color: #a3a3a3;
    border-color: #a3a3a3;
    cursor: not-allowed;
    opacity: 0.5;
}

body.dark-mode button {
    background-color: #fafafa;
    color: #0a0a0a;
    border-color: #fafafa;
}

body.dark-mode button:hover {
    background-color: #e5e5e5;
    border-color: #e5e5e5;
}

body.dark-mode button:disabled {
    background-color: #525252;
    border-color: #525252;
    color: #a3a3a3;
}

.icon-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid #e5e5e5;
    color: #737373;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #fafafa;
    border-color: #d4d4d4;
    color: #171717;
}

body.dark-mode .icon-btn {
    border-color: #262626;
    color: #a3a3a3;
}

body.dark-mode .icon-btn:hover {
    background: #171717;
    border-color: #404040;
    color: #ededed;
}

/* Theme Toggle */
#theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #171717;
}

#theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark-mode #theme-toggle {
    border-color: rgba(255, 255, 255, 0.1);
    color: #ededed;
}

body.dark-mode #theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* N8N Button */
.n8n-link-btn {
    display: inline-flex;
    align-items: center;
    background-color: #10b981;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid #10b981;
}

.n8n-link-btn:hover {
    background-color: #059669;
    border-color: #059669;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.15s ease;
}

.stat-card:hover {
    border-color: #d4d4d4;
}

body.dark-mode .stat-card {
    background: #0a0a0a;
    border-color: #262626;
}

body.dark-mode .stat-card:hover {
    border-color: #404040;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    color: #525252;
}

body.dark-mode .stat-icon {
    background: #171717;
    border-color: #262626;
    color: #a3a3a3;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #737373;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark-mode .stat-label {
    color: #a3a3a3;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #171717;
    line-height: 1;
    letter-spacing: -0.02em;
}

body.dark-mode .stat-value {
    color: #ededed;
}

/* ============================================
   CARDS
   ============================================ */
.repo-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: border-color 0.15s ease;
}

.repo-card:hover {
    border-color: #d4d4d4;
}

body.dark-mode .repo-card {
    background: #0a0a0a;
    border-color: #262626;
}

body.dark-mode .repo-card:hover {
    border-color: #404040;
}

.repo-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #171717;
    letter-spacing: -0.02em;
}

body.dark-mode .repo-card h2 {
    color: #ededed;
}

.repo-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #525252;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark-mode .repo-card h3 {
    color: #a3a3a3;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
}

/* ============================================
   REPO INFO BAR
   ============================================ */
.repo-info-bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
    flex-wrap: wrap;
}

body.dark-mode .repo-info-bar {
    border-bottom-color: #171717;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #525252;
}

.info-item svg {
    color: #a3a3a3;
}

body.dark-mode .info-item {
    color: #a3a3a3;
}

body.dark-mode .info-item svg {
    color: #737373;
}

/* ============================================
   WORKFLOW SELECT
   ============================================ */
.workflow-executor {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

body.dark-mode .workflow-executor {
    background: #0a0a0a;
    border-color: #262626;
}

.workflow-executor h3 {
    margin: 0 0 0.75rem 0;
    font-size: 0.75rem;
    color: #737373;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

body.dark-mode .workflow-executor h3 {
    color: #a3a3a3;
}

.workflow-controls {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.workflow-select-wrapper {
    flex: 1;
}

.workflow-select-wrapper select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    color: #171717;
    cursor: pointer;
    transition: all 0.15s ease;
}

.workflow-select-wrapper select:hover {
    border-color: #d4d4d4;
}

.workflow-select-wrapper select:focus {
    outline: none;
    border-color: #171717;
}

body.dark-mode .workflow-select-wrapper select {
    background: #0a0a0a;
    border-color: #262626;
    color: #ededed;
}

body.dark-mode .workflow-select-wrapper select:hover {
    border-color: #404040;
}

body.dark-mode .workflow-select-wrapper select:focus {
    border-color: #ededed;
}

.workflow-controls button {
    min-width: 120px;
}

.workflow-status-indicator {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.workflow-status-indicator.active {
    display: flex;
}

.workflow-status-indicator.pending {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.workflow-status-indicator.success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.workflow-status-indicator.failure {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

body.dark-mode .workflow-status-indicator.pending {
    background: #422006;
    color: #fcd34d;
    border-color: #78350f;
}

body.dark-mode .workflow-status-indicator.success {
    background: #052e16;
    color: #86efac;
    border-color: #166534;
}

body.dark-mode .workflow-status-indicator.failure {
    background: #450a0a;
    color: #fca5a5;
    border-color: #991b1b;
}

.status-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   CHARTS
   ============================================ */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.chart-container {
    background: #fafafa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

body.dark-mode .chart-container {
    background: #0a0a0a;
    border-color: #262626;
}

.chart-container h3 {
    margin: 0 0 0.75rem 0;
    font-size: 0.75rem;
    color: #737373;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark-mode .chart-container h3 {
    color: #a3a3a3;
}

canvas {
    max-height: 200px;
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

thead {
    background: #fafafa;
}

body.dark-mode thead {
    background: #0a0a0a;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #525252;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e5e5;
}

body.dark-mode th {
    color: #a3a3a3;
    border-bottom-color: #262626;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f5f5f5;
    color: #171717;
}

body.dark-mode td {
    border-bottom-color: #171717;
    color: #ededed;
}

tbody tr {
    transition: background-color 0.1s ease;
}

tbody tr:hover {
    background: #fafafa;
}

body.dark-mode tbody tr:hover {
    background: #171717;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Status Indicators */
.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.aligned {
    background: #10b981;
}

.status-dot.ahead {
    background: #3b82f6;
}

.status-dot.behind {
    background: #ef4444;
}

.status-dot.behind-warning {
    background: #f59e0b;
}

.status-dot.diverged {
    background: #f59e0b;
}

/* Branch Actions */
.branch-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 4px;
    color: #737373;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.action-icon:hover {
    background: #fafafa;
    color: #171717;
    border-color: #e5e5e5;
}

body.dark-mode .action-icon {
    color: #a3a3a3;
}

body.dark-mode .action-icon:hover {
    background: #171717;
    color: #ededed;
    border-color: #262626;
}

/* ============================================
   RELEASES
   ============================================ */
#releases-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.release-card {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.15s ease;
}

.release-card:hover {
    border-color: #d4d4d4;
}

body.dark-mode .release-card {
    background: #0a0a0a;
    border-color: #262626;
}

body.dark-mode .release-card:hover {
    border-color: #404040;
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.release-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #171717;
    margin: 0;
    letter-spacing: -0.01em;
}

body.dark-mode .release-name {
    color: #ededed;
}

.release-badge {
    background: #171717;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.release-badge.latest {
    background: #10b981;
}

body.dark-mode .release-badge {
    background: #fafafa;
    color: #0a0a0a;
}

body.dark-mode .release-badge.latest {
    background: #10b981;
    color: #ffffff;
}

.release-info {
    font-size: 0.75rem;
    color: #737373;
    margin-bottom: 0.5rem;
}

body.dark-mode .release-info {
    color: #a3a3a3;
}

.release-tag {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    background: #f5f5f5;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #525252;
    border: 1px solid #e5e5e5;
}

body.dark-mode .release-tag {
    background: #171717;
    color: #a3a3a3;
    border-color: #262626;
}

.release-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #171717;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.release-link:hover {
    text-decoration: underline;
}

body.dark-mode .release-link {
    color: #ededed;
}

/* ============================================
   ACTION HISTORY
   ============================================ */
#action-history-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0;
}

body.dark-mode #action-history-container {
    border-color: #262626;
}

#action-history-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.1s ease;
}

.history-item:hover {
    background: #fafafa;
}

.history-item:last-child {
    border-bottom: none;
}

body.dark-mode .history-item {
    border-bottom-color: #171717;
}

body.dark-mode .history-item:hover {
    background: #171717;
}

.history-item-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.history-item-status.success {
    background: #10b981;
}

.history-item-status.failure {
    background: #ef4444;
}

.history-item-status.pending {
    background: #f59e0b;
}

.history-item-info {
    flex: 1;
}

.history-item-info strong {
    display: block;
    color: #171717;
    font-size: 0.875rem;
    font-weight: 500;
}

body.dark-mode .history-item-info strong {
    color: #ededed;
}

.history-item-info small {
    color: #737373;
    font-size: 0.75rem;
}

body.dark-mode .history-item-info small {
    color: #a3a3a3;
}

.history-item-time {
    font-size: 0.75rem;
    color: #a3a3a3;
    flex-shrink: 0;
}

/* ============================================
   TODO LISTS
   ============================================ */
#new-list-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#new-list-title {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    color: #171717;
    transition: all 0.15s ease;
}

#new-list-title:focus {
    outline: none;
    border-color: #171717;
}

body.dark-mode #new-list-title {
    background: #0a0a0a;
    border-color: #262626;
    color: #ededed;
}

body.dark-mode #new-list-title:focus {
    border-color: #ededed;
}

#todo-lists-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    align-items: start;
}

.todo-list-card {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1rem;
    transition: border-color 0.15s ease;
}

.todo-list-card:hover {
    border-color: #d4d4d4;
}

body.dark-mode .todo-list-card {
    background: #0a0a0a;
    border-color: #262626;
}

body.dark-mode .todo-list-card:hover {
    border-color: #404040;
}

.todo-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    user-select: none;
}

.todo-list-card:not(.expanded) .todo-list-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.todo-list-header::before {
    content: '▶';
    margin-right: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.todo-list-card.expanded .todo-list-header::before {
    transform: rotate(90deg);
}

body.dark-mode .todo-list-header {
    border-bottom-color: #262626;
}

.todo-list-header h3 {
    margin: 0;
    font-size: 0.875rem;
    color: #171717;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body.dark-mode .todo-list-header h3 {
    color: #ededed;
}

.delete-list-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0 0.25rem;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.delete-list-btn:hover {
    opacity: 1;
}

.todo-list-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    display: none;
}

.todo-list-card.expanded ul {
    display: block;
}

.todo-list-card .add-step-form,
.todo-list-card .add-action-step-btn {
    display: none;
}

.todo-list-card.expanded .add-step-form,
.todo-list-card.expanded .add-action-step-btn {
    display: flex;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.875rem;
}

.step-item:last-of-type {
    border-bottom: none;
}

body.dark-mode .step-item {
    border-bottom-color: #171717;
}

.step-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.step-label {
    flex: 1;
    color: #171717;
}

body.dark-mode .step-label {
    color: #ededed;
}

.step-item.completed .step-label {
    text-decoration: line-through;
    color: #a3a3a3;
}

.step-item.type-action {
    background: #f5f5f5;
    padding: 0.5rem;
    margin: 0.25rem -0.5rem;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

body.dark-mode .step-item.type-action {
    background: #171717;
    border-color: #262626;
}

.action-details {
    font-size: 0.75rem;
    color: #737373;
    margin-left: 0.25rem;
}

body.dark-mode .action-details {
    color: #a3a3a3;
}

.delete-step-btn {
    background: none;
    border: none;
    color: #d4d4d4;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s ease;
    font-size: 1rem;
    padding: 0 0.25rem;
}

.step-item:hover .delete-step-btn {
    opacity: 0.5;
}

.delete-step-btn:hover {
    opacity: 1 !important;
    color: #ef4444;
}

.add-step-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e5e5;
}

body.dark-mode .add-step-form {
    border-top-color: #262626;
}

.add-step-form input {
    flex: 1;
    padding: 0.375rem 0.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 0.875rem;
}

body.dark-mode .add-step-form input {
    background: #0a0a0a;
    border-color: #262626;
    color: #ededed;
}

.add-step-form button {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.run-action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.add-action-step-btn {
    background: transparent;
    border: 1px dashed #d4d4d4;
    color: #525252;
    width: 100%;
    margin-top: 0.5rem;
}

.add-action-step-btn:hover {
    border-color: #171717;
    background: #fafafa;
    color: #171717;
}

body.dark-mode .add-action-step-btn {
    border-color: #404040;
    color: #a3a3a3;
}

body.dark-mode .add-action-step-btn:hover {
    border-color: #ededed;
    background: #171717;
    color: #ededed;
}

/* ============================================
   FILE MONITOR
   ============================================ */
.monitor-path-info {
    font-size: 0.75rem;
    color: #737373;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

body.dark-mode .monitor-path-info {
    background: #0a0a0a;
    border-color: #262626;
    color: #a3a3a3;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

body.dark-mode .table-container {
    border-color: #262626;
}

#monitor-table th {
    position: sticky;
    top: 0;
    background: #fafafa;
    z-index: 10;
}

body.dark-mode #monitor-table th {
    background: #0a0a0a;
}

#monitor-table td:first-child {
    font-weight: 500;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    border: 1px solid #e5e5e5;
}

body.dark-mode .modal-content {
    background: #0a0a0a;
    border-color: #262626;
}

.modal-content h2 {
    margin-top: 0;
    color: #171717;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

body.dark-mode .modal-content h2 {
    color: #ededed;
}

.close-btn {
    color: #a3a3a3;
    float: right;
    font-size: 1.5rem;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.15s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #171717;
}

body.dark-mode .close-btn:hover {
    color: #ededed;
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #525252;
    font-size: 0.875rem;
}

body.dark-mode .form-group label {
    color: #a3a3a3;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    color: #171717;
    transition: all 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #171717;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #0a0a0a;
    border-color: #262626;
    color: #ededed;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #ededed;
}

.form-group small {
    font-size: 0.75rem;
    color: #a3a3a3;
    display: block;
    margin-top: 0.25rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.error {
    color: #991b1b;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border-left: 2px solid #ef4444;
    border-radius: 4px;
}

body.dark-mode .error {
    color: #fca5a5;
    background: #450a0a;
    border-left-color: #991b1b;
}

.placeholder-text {
    text-align: center;
    color: #a3a3a3;
    padding: 1.5rem;
    font-size: 0.875rem;
}

/* Login Container */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

body.dark-mode .login-container {
    background: #0a0a0a;
    border: 1px solid #262626;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    #todo-lists-container {
        grid-template-columns: 1fr;
    }

    #releases-container {
        grid-template-columns: 1fr;
    }

    .workflow-controls {
        flex-direction: column;
    }

    .workflow-controls button {
        width: 100%;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #0a0a0a;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #404040;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #525252;
}