/* Extra mobile-friendly adjustments */
@media (max-width: 480px) {
    body {
        font-size: 1.05rem;
    }
    .card {
        padding: 1rem;
        border-radius: 0.25rem;
    }
    .btn, .input {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
    .runs-grid {
        gap: 0.75rem;
    }
    .run-card {
        padding: 1rem;
    }
    .modal-content {
        padding: 1rem;
        max-width: 98vw;
    }
    header, .view-header {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    h1, h2, h3 {
        font-size: 1.25rem;
    }
}
:root {
    --color-primary: #A67B5B;
    --color-background: #F5F5DC;
    --color-accent: #C0B283;
    --color-text: #2D2D2D;
    --color-text-muted: #6B6B6B;
    --color-border: #D4D4D4;
    --color-card: #FFFFFF;
    --color-success: #10B981;
    --color-error: #EF4444;
}

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

body {
    font-family: 'Segoe UI', 'PT Sans', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

#app {
    min-height: 100vh;
}

.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--color-background);
}

.loading-content {
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.coffee-icon {
    width: 64px;
    height: 64px;
    color: var(--color-primary);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-content h1 {
    font-family: Georgia, 'Playfair', serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--color-text-muted);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#blazor-error-ui {
    background: var(--color-error);
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
}

#blazor-error-ui .dismiss,
#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 1rem;
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background-color: #8F6A4D;
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-text);
}

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

/* Card styles */
.card {
    background-color: var(--color-card);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Input styles */
.input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(166, 123, 91, 0.1);
}

/* Coffee Runs Grid */
.runs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.run-card {
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.run-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(166, 123, 91, 0.15);
    border-color: var(--color-primary);
}

.run-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.run-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.run-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.run-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.run-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.detail-icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.run-detail-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .runs-grid {
        grid-template-columns: 1fr;
    }
}

    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: var(--color-card);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
