* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-light: #555;
    --text-dark: #333;
    --bg-white: white;
    --bg-light: #f5f5f5;
    --bg-lighter: #e8e8e8;
    --border-light: #e0e0e0;
    --border-lighter: #ddd;
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    --border-radius-lg: 15px;
    --border-radius-md: 8px;
    --border-radius-sm: 6px;
    --transition-standard: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 20px 20px 60px;
    color: var(--text-dark);
    position: relative;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: var(--bg-white);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: var(--bg-white);
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.settings-panel,
.progress-section,
.annual-section {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-main);
    margin-bottom: 30px;
}

.settings-panel h2,
.progress-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.annual-section h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.settings-panel h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.days-selection {
    margin-bottom: 25px;
}

.day-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.day-checkboxes label {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-standard);
}

.day-checkboxes label:hover {
    background: var(--bg-lighter);
    transform: translateY(-2px);
}

.day-checkboxes input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.day-checkboxes input[type="checkbox"]:checked + span {
    font-weight: bold;
    color: var(--primary-color);
}

.time-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.time-input {
    display: flex;
    flex-direction: column;
}

.time-input label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.time-input input[type="time"] {
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    font-size: 1em;
    transition: var(--transition-standard);
}

.time-input input[type="time"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Primary button styles */
.submit-button,
.edit-schedule-button {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius-md);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
}

.submit-button {
    background: var(--primary-gradient);
    color: var(--bg-white);
    border: none;
}

.edit-schedule-button {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-bottom: 30px;
}

.submit-button:hover,
.edit-schedule-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.edit-schedule-button:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.submit-button:active,
.edit-schedule-button:active {
    transform: translateY(0);
}

.bottom-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Small button styles */
.toggle-stats-button,
.edit-schedule-button-small {
    flex: 1;
    padding: 10px;
    background: transparent;
    color: #999;
    border: 1px solid var(--border-lighter);
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-standard);
}

.toggle-stats-button:hover,
.edit-schedule-button-small:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.toggle-stats-button:active,
.edit-schedule-button-small:active {
    transform: scale(0.98);
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.stat {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

/* Progress bar containers */
.progress-bar-container,
.annual-progress-bar-container {
    width: 100%;
    height: 60px;
    background: var(--border-light);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: var(--shadow-inset);
}

/* Progress bars */
.progress-bar,
.annual-progress-bar {
    height: 100%;
    border-radius: 30px;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.annual-progress-bar {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

/* Progress text */
.progress-text,
.annual-progress-text {
    color: var(--bg-white);
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.status-message {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    padding: 15px;
    border-radius: 8px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-message.working {
    background: #fff3cd;
    color: #856404;
}

.status-message.weekend {
    background: #d4edda;
    color: #155724;
}

.status-message.complete {
    background: #d1ecf1;
    color: #0c5460;
}

.status-text {
    width: 100%;
}

.shift-progress-section {
    width: 100%;
}

.shift-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.shift-label {
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap;
    flex-shrink: 0;
}

.toggle-shift-button {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.3);
    color: #856404;
    border: 1px solid rgba(133, 100, 4, 0.3);
    border-radius: var(--border-radius-sm);
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-standard);
    white-space: nowrap;
    flex-shrink: 0;
}

.toggle-shift-button:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(133, 100, 4, 0.5);
}

.shift-progress-bar-container {
    flex: 1;
    height: 30px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shift-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    border-radius: var(--border-radius-lg);
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
}

.shift-progress-text {
    color: var(--bg-white);
    font-weight: bold;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.shift-time-info {
    flex: 1;
    text-align: left;
    font-size: 0.95em;
    font-weight: 500;
}

.annual-section {
    margin-top: 30px;
}

.annual-subtitle {
    color: #999;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.annual-hours-remaining {
    text-align: center;
    font-size: 0.75em;
    color: #999;
    margin-top: 10px;
    margin-bottom: 0;
}

.luxury-section {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-main);
    margin-bottom: 30px;
}

.luxury-section h2 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 1.5em;
    text-align: center;
}

.luxury-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 600;
}

.luxury-car-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.luxury-form {
    margin-bottom: 20px;
}

.luxury-input-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.luxury-input-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
}

.luxury-input-group input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.luxury-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.luxury-input {
    display: flex;
    flex-direction: column;
}

.luxury-input label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.luxury-input input[type="number"] {
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    font-size: 1em;
    transition: var(--transition-standard);
}

.luxury-input input[type="number"]:focus {
    outline: none;
    border-color: #d4af37;
}

.luxury-button {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
}

.luxury-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.luxury-result {
    margin-top: 20px;
}

.luxury-progress-bar-container {
    background: var(--bg-light);
    border-radius: 25px;
    height: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-inset);
    margin-bottom: 20px;
    position: relative;
}

.luxury-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 25px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.luxury-progress-text {
    color: white;
    font-weight: bold;
    font-size: 1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.luxury-stats {
    text-align: center;
}

.luxury-stats p {
    margin: 10px 0;
    font-size: 1.1em;
    color: var(--text-light);
    font-weight: 600;
}

.luxury-edit-button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: transparent;
    color: #999;
    border: 1px solid var(--border-lighter);
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-standard);
}

.luxury-edit-button:hover {
    background: var(--bg-light);
    color: #d4af37;
    border-color: #d4af37;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    opacity: 0.8;
}

.footer p {
    margin: 0;
}

.secret-button {
    padding: 4px 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75em;
    cursor: pointer;
    transition: var(--transition-standard);
    opacity: 0.3;
}

.secret-button:hover {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.mystery-button {
    padding: 4px 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75em;
    cursor: pointer;
    transition: var(--transition-standard);
    opacity: 0.3;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.mystery-button:hover {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    
    .time-selection {
        grid-template-columns: 1fr;
    }
    
    .day-checkboxes {
        grid-template-columns: 1fr;
    }
}
