/* RepairNinja - Repair Tracking Page Styles */

:root {
    /* Typography scale - centralized font sizes for consistency */
    --font-size-xs: 16px;   /* Minimum for accessibility */
    --font-size-sm: 16px;   /* Small text */
    --font-size-base: 16px; /* Body text */
    --font-size-lg: 18px;   /* Large text */
    --font-size-xl: 20px;   /* Extra large */
    --font-size-2xl: 24px;  /* 2x large */
    --font-size-3xl: 28px;  /* 3x large */
    --font-size-4xl: 36px;  /* 4x large */

    /* Colors */
    --primary-color: #1a73e8;
    --secondary-color: #5f6368;
}

/* Montserrat Font Faces */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Montserrat-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/Montserrat-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/Montserrat-Bold.woff2') format('woff2');
}

:root {
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
}

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

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--dark-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-base);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
}

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 28px;
    text-align: center;
}

.subtitle {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 16px;
    text-align: center;
}

.input-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.status-card {
    display: none;
    margin-top: 30px;
}

.status-card.show {
    display: block;
}

.client-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.client-info h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 8px;
}

.client-info p {
    color: #666;
    margin: 4px 0;
}

.progress-container {
    margin: 30px 0;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.stage {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    border-left: 4px solid #d0d0d0;
    color: #333;
}

.stage.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: 1px solid var(--primary-color);
    transform: scale(1.02);
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.stage h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stage.active .stage-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.stage p {
    font-size: 16px;
    color: #666;
    opacity: 1;
}

.stage.active h3,
.stage.active p {
    color: white;
}

.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
    margin-top: 20px;
    display: none;
}

.error.show {
    display: block;
}

.updated-at {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-top: 20px;
}

/* Lightbox for full-size images */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 8px;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.lightbox-close:hover {
    color: var(--danger-color);
}

.back-button {
    background: #e0e0e0;
    color: #333;
    margin-top: 20px;
}

.back-button:hover {
    background: #d0d0d0;
}

noscript div {
    padding: 20px;
    background: #fee;
    color: #c33;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
}

.footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    width: 100%;
}

.footer p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin: 8px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer a:hover {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .container {
        padding: 24px;
    }

    h1 {
        font-size: 24px;
    }
}

