/* PunTracker Custom Styles */

:root {
    --bg-color: #ffffff;
    --text-color: #212529;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --hover-bg: #f8f9fa;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --hover-bg: #3a3a3a;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.table {
    color: var(--text-color);
}

.table-hover tbody tr:hover {
    background-color: var(--hover-bg);
}

.form-control, .form-select {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.form-control:focus, .form-select:focus {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.modal-header, .modal-footer {
    border-color: var(--border-color);
}

.list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Dark mode toggle button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #0d6efd;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle {
    background-color: #ffc107;
    color: #000;
}

/* Text colors that should remain visible in dark mode */
.text-muted {
    opacity: 0.8;
}

/* Ensure badges are visible */
.badge {
    opacity: 1;
}
