:root {
    --dark-bg: #1a1a1a;
    --darker-bg: #141414;
    --primary-color: #00a651;
    --primary-color-rgb: 0, 166, 81; /* Added RGB values for primary color */
    --text-color: #ffffff;
    --border-color: #333333;
    --header-bg: #000000;
    --table-header-bg: #000000;
    --table-row-hover: #2a2a2a;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.navbar {
    background-color: var(--header-bg);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    width: 100%;
    margin: 0 auto;
}

.card {
    background-color: var(--darker-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* Table Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th {
    background-color: var(--table-header-bg);
    color: var(--text-color);
    font-weight: 600;
    text-align: left;
    padding: 1rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background-color: var(--table-row-hover);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

/* Status Select Styling */
.status-select {
    background-color: var(--darker-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    width: 100%;
}

.status-select option {
    background-color: var(--darker-bg);
    color: var(--text-color);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #cccccc;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

/* Login buttons styling */
#loginSection button {
    width: 200px;
    margin: 0;
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

/* Sign-in button specific styling */
#loginSection button[onclick="login()"] {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    margin-top: 20px;
}

#loginSection button[onclick="login()"]:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Demo login button specific styling */
#demoLoginButton {
    background-color: var(--primary-color);
    border: none;
    color: white;
}

#demoLoginButton:hover {
    background-color: #008c44;
}

button:hover {
    background-color: #008c44;
}

/* Timer Display */
#timer {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin: 2rem 0;
    font-family: monospace;
    color: var(--primary-color);
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Paused timer styling */
#timer.paused {
    color: #ff9800; /* Orange color for paused state */
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Loading Spinner */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--dark-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Week header styling */
.week-header {
    background-color: var(--darker-bg) !important;
}

.week-header td {
    padding: 15px !important;
    border-top: 2px solid var(--border-color) !important;
    border-bottom: 2px solid var(--border-color) !important;
}

.week-header td strong {
    color: var(--primary-color);
}

/* Week toggle styling */
.week-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
}

.toggle-icon {
    margin-right: 8px;
    font-size: 12px;
    transition: transform 0.2s;
    display: inline-block;
    color: var(--primary-color);
}

.week-toggle:hover .toggle-icon {
    transform: scale(1.2);
}

.week-entries {
    display: table-row-group;
}
