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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.logo p {
    color: #718096;
    font-size: 0.9rem;
}

/* Header Styles */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 600;
}

.back-btn {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: #ebf8ff;
}

.logout-btn {
    margin-left: auto;
}

/* Dashboard Styles */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #4299e1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.dashboard-card p {
    color: #718096;
    font-size: 0.9rem;
}

/* Contacts page styles */
.contacts-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4299e1;
}

.contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.contact-card:hover {
    background: #f1f5f9;
    border-color: #4299e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    color: #4299e1;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    background-color: #ebf8ff;
    color: #3182ce;
}

.time-info {
    font-size: 0.85rem;
    color: #718096;
    margin-left: auto;
}

.job-instruction {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.5rem;
    background-color: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #4299e1;
}

/* What3Words specific styles */
.location-finder {
    text-align: center;
    padding: 2rem 0;
}

.location-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.result {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #2d3748;
}

.result.loading {
    color: #4299e1;
}

.result.error {
    color: #e53e3e;
    background-color: #fed7d7;
    border-color: #feb2b2;
}

.result.success {
    color: #38a169;
    background-color: #f0fff4;
    border-color: #9ae6b4;
    font-weight: 600;
}

/* Weather specific styles */
.weather-controls {
    margin-bottom: 2rem;
}

.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.city-search {
    display: flex;
    gap: 0.5rem;
}

.city-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.city-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.weather-display {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    min-height: 200px;
}

.weather-prompt {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    margin: 2rem 0;
}

.weather-content {
    display: grid;
    gap: 1.5rem;
}

.current-weather {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.weather-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.location-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.current-temp {
    font-size: 3rem;
    font-weight: 700;
    color: #4299e1;
    margin: 0.5rem 0;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.weather-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.weather-item-label {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.weather-item-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.hourly-forecast {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forecast-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    overflow-x: auto;
}

.forecast-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    min-width: 100px;
}

.forecast-time {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.forecast-temp {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.forecast-details {
    font-size: 0.75rem;
    color: #718096;
}

.loading {
    text-align: center;
    color: #4299e1;
    font-size: 1.1rem;
    padding: 2rem;
}

.error {
    text-align: center;
    color: #e53e3e;
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Form Styles */
.form-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.radio-label:hover {
    background-color: #f7fafc;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.time-inputs {
    display: flex;
    gap: 1rem;
}

.time-inputs select {
    flex: 1;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}

.btn-primary:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Vehicle Check Specific Styles */
.fuel-level-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fuel-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fuel-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.fuel-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.fuel-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4299e1;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fuel-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4299e1;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fuel-percentage {
    text-align: center;
    font-weight: 600;
    color: #1a202c;
    font-size: 1.1rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.form-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Break Timer Styles */
.timer-container {
    text-align: center;
    padding: 2rem 0;
}

.timer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.timer-btn {
    min-width: 120px;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
}

.timer-display {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #e2e8f0;
}

.time-remaining {
    font-size: 4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.timer-status {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.alarm-controls {
    background: #fed7d7;
    border: 2px solid #feb2b2;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.alarm-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: #c53030;
    text-align: center;
}

.alarm-stop-btn {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    background-color: #c53030 !important;
}

.alarm-stop-btn:hover {
    background-color: #9c2626 !important;
}

/* Visual alarm effect */
body.alarm-active {
    animation: alarmFlash 1s infinite;
}

@keyframes alarmFlash {
    0%, 50% { background-color: #f8fafc; }
    25%, 75% { background-color: #fed7d7; }
}

body.alarm-active .timer-display {
    background: #fed7d7;
    border-color: #f56565;
    animation: borderFlash 0.5s infinite;
}

@keyframes borderFlash {
    0%, 100% { border-color: #f56565; }
    50% { border-color: #c53030; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .header h1 {
        font-size: 1.25rem;
    }
    
    .dashboard {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    .time-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .city-search {
        flex-direction: column;
    }
    
    .current-temp {
        font-size: 2.5rem;
    }
    
    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .forecast-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .forecast-item {
        padding: 0.75rem;
        min-width: 80px;
    }
    
    .timer-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .time-remaining {
        font-size: 3rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-controls .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .logout-btn {
        margin-left: 0;
        order: 3;
        width: 100%;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
}