/* ===================================
   Window Tinting Quote App - Styles
   Mobile-First Design
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --background-alt: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* App Container */
#app {
    min-height: 100vh;
    position: relative;
}

/* Section/Step Management */
.step {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Step Header */
.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-top: 10px;
}

.step-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-back, .btn-icon, .btn-link {
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    box-shadow: var(--shadow);
}

/* Fixed bottom button - override transforms to prevent movement */
.btn-fixed-bottom.btn-primary:hover {
    transform: translateX(-50%) translateY(-2px);
}

.btn-fixed-bottom.btn-primary:active {
    transform: translateX(-50%);
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 18px;
}

.btn-secondary {
    background: var(--background);
    color: var(--primary-color);
    padding: 14px 28px;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-tertiary {
    background: transparent;
    color: var(--text-muted);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.btn-tertiary:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--background-alt);
}

.btn-back, .btn-icon {
    background: var(--background);
    color: var(--text-primary);
    padding: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.btn-back:hover, .btn-icon:hover {
    background: var(--background-alt);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 8px 0;
    text-decoration: none;
    font-size: 14px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ========== LANDING PAGE ========== */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.logo {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.benefits {
    list-style: none;
    margin: 40px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.benefits li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.benefits li:last-child {
    border-bottom: none;
}

.disclaimer {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== INSTRUCTIONS ========== */
.instructions-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 100px; /* Space for fixed button */
    padding-bottom: 20px;
}

.image-slideshow {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 20px;
}

.slide-image.active {
    opacity: 1;
    animation: slideShow 4s infinite;
}

.slide-image:nth-child(2) {
    animation-delay: 2s;
}

@keyframes slideShow {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.simple-steps {
    text-align: left;
    width: 100%;
    max-width: 400px;
    background: var(--background-alt);
    padding: 20px;
    border-radius: 12px;
}

.simple-steps p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

.simple-steps strong {
    display: inline-block;
    min-width: 24px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Fixed bottom button */
.btn-fixed-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Button group for two equal buttons */
.button-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.button-group.btn-fixed-bottom {
    width: calc(100% - 40px);
    max-width: 500px;
    box-shadow: none; /* Remove shadow from container */
}

.btn-split {
    flex: 1;
    font-size: 15px;
    padding: 16px 12px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Individual button shadows */
    border: none;
}

.button-group .btn-split:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button-group .btn-split:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* OLD STYLES - Keep for backward compatibility */
.instructions-content {
    margin-bottom: 30px;
}

.instruction-card {
    background: var(--background-alt);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.instruction-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.instruction-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.tips {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 30px;
}

.tips h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tips ul {
    list-style: none;
    padding-left: 0;
}

.tips li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-primary);
    font-size: 14px;
}

.tips li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* ========== CAMERA VIEW ========== */
.camera-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#a4-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15%;  /* Much smaller overlay to show more of the window */
    max-width: 120px;
    pointer-events: auto;
    z-index: 10;
    cursor: move;
    touch-action: none;
    transition: transform 0.3s ease;
}

#a4-overlay.portrait {
    width: 12%;
    max-width: 100px;
}

#a4-overlay.landscape {
    width: 15%;
    max-width: 120px;
}

#a4-overlay svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.5));
    pointer-events: none;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #00ff00;
    border: 2px solid white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: auto;
    cursor: nwse-resize;
    z-index: 15;
}

.resize-ne {
    top: -10px;
    right: -10px;
    cursor: nesw-resize;
}

.resize-se {
    bottom: -10px;
    right: -10px;
    cursor: nwse-resize;
}

.resize-sw {
    bottom: -10px;
    left: -10px;
    cursor: nesw-resize;
}

.resize-nw {
    top: -10px;
    left: -10px;
    cursor: nwse-resize;
}

/* Overlay controls */
.overlay-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.btn-small {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    border-radius: 50%;
    color: #00ff00;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.1);
}

.btn-small:active {
    transform: scale(0.95);
}

.camera-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 30px;
    z-index: 20;
}

.btn-capture {
    width: 80px;
    height: 80px;
    background: white;
    border: none;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.capture-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid white;
    border-radius: 50%;
}

.capture-button {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-capture:active .capture-button {
    transform: scale(0.9);
}

.camera-controls .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
}

.camera-instructions {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 20px;
    z-index: 15;
}

.camera-instructions p {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
}

/* Corner Adjustment Overlay */
#corner-adjustment {
    background: rgba(0, 0, 0, 0.95);
}

.adjustment-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#adjustment-canvas {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

#corner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    max-width: 100%;
    max-height: 70vh;
}

.corner-point {
    cursor: move;
    pointer-events: all;
    transition: r 0.2s;
}

.corner-point:hover {
    r: 18;
}

.corner-point:active {
    r: 20;
}

.adjustment-instructions {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.adjustment-instructions p {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 12px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #00ff00;
}

.adjustment-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 0 20px;
    z-index: 10;
}

.adjustment-controls button {
    flex: 1;
    max-width: 200px;
}


/* Processing Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.overlay p {
    margin-top: 20px;
    font-size: 16px;
}

/* ========== WINDOW MANAGER ========== */
.windows-list {
    margin-top: 20px;
    margin-bottom: 30px;
}

.window-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.window-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.window-thumbnail-manual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background-alt);
    border: 2px dashed var(--border-color);
}

.manual-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.manual-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

.window-info {
    flex: 1;
}

.window-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.window-tags {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 4px 0;
}

.window-dimensions {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.window-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.window-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-edit {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.btn-edit:hover {
    transform: scale(1.1);
}

.btn-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    padding: 8px;
    cursor: pointer;
    font-size: 20px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.action-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.action-buttons button svg {
    flex-shrink: 0;
}

/* ========== QUOTE SUMMARY ========== */
.quote-details {
    margin-bottom: 30px;
}

.summary-section {
    background: var(--background-alt);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.summary-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

#quote-windows-summary {
    font-size: 14px;
    color: var(--text-secondary);
}

.window-summary-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.window-summary-item:last-child {
    border-bottom: none;
}

.material-select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    margin-bottom: 12px;
}

.material-description {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.price-breakdown {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--primary-color);
}

.disclaimer-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 16px;
    text-align: center;
}

/* ========== CONTACT FORM ========== */
.contact-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Manual entry form styles */
.manual-entry-form {
    padding-bottom: 100px;
}

.dimension-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dimension-input-group input {
    flex: 1;
    min-width: 0;
}

.dimension-input-group .unit-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.dimension-preview {
    margin-top: 30px;
    padding: 20px;
    background: var(--background-alt);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.dimension-preview p {
    margin: 8px 0;
}

.preview-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.checkbox-group {
    margin-top: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ========== TAG SELECTOR ========== */
#tag-selector {
    padding-bottom: 100px;
}

.tag-selector-hint {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.tag-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.tag-button {
    padding: 14px 16px;
    background: var(--background-alt);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.tag-button:hover {
    border-color: var(--primary-color);
    background: var(--background);
}

.tag-button.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.custom-tag-section {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.custom-tag-input-group {
    display: flex;
    gap: 8px;
}

.custom-tag-input-group input {
    flex: 1;
}

.btn-small {
    padding: 10px 16px;
    font-size: 14px;
}

.selected-tags-preview {
    margin-bottom: 30px;
    padding: 16px;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.selected-tags-preview p {
    margin-bottom: 12px;
    font-size: 14px;
}

.selected-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ========== CONFIRMATION ========== */
.confirmation-content {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    color: var(--secondary-color);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.confirmation-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.confirmation-message {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.quote-id {
    background: var(--background-alt);
    padding: 16px;
    border-radius: var(--radius);
    font-size: 16px;
    margin-bottom: 24px;
}

.quote-id strong {
    color: var(--primary-color);
    font-size: 18px;
}

.confirmation-details {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    color: var(--text-primary);
}

.btn-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-close:hover {
    background: var(--background-alt);
}

.modal-body {
    padding: 20px;
}

.modal-body ul {
    margin: 16px 0;
    padding-left: 20px;
}

.modal-body li {
    margin: 8px 0;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* ========== BUG REPORT BUTTON ========== */
.bug-report-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--background);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.2s ease;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bug-report-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bug-report-btn:active {
    transform: scale(0.95);
}

/* Hide on very small screens to avoid blocking content */
@media (max-width: 360px) {
    .bug-report-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        bottom: 10px;
        right: 10px;
    }
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
    .container {
        padding: 40px;
    }

    .hero {
        padding: 80px 40px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .subtitle {
        font-size: 20px;
    }

    .action-buttons {
        flex-direction: row;
    }

    .window-card {
        padding: 20px;
    }

    .window-thumbnail {
        width: 120px;
        height: 120px;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}
