﻿.cr-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hero-view {
    text-align: center;
    padding: 3rem 1rem;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.btn {
    background: var(--bg-surface-hover);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

    .btn:hover {
        background: var(--bg-surface);
        border-color: var(--text-muted);
    }

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
}

    .btn-primary:hover {
        filter: brightness(1.1);
        border: none;
    }

.btn-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.4);
}

    .btn-danger:hover {
        background: rgba(220, 53, 69, 0.3);
    }

/* New Icon Button for inline deletion */
.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-icon:hover {
        background: rgba(220, 53, 69, 0.2);
        color: #ff6b6b;
    }

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        color: var(--text-muted);
    }

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    outline: none;
}

    .form-control:focus {
        border-color: var(--accent);
    }

.timer-box {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.timer-text {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.timer-pulse {
    animation: pulse 1s infinite;
    color: #ff6b6b;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-base);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
}

    .order-item.mine {
        border-left-color: var(--accent);
    }

.order-details {
    flex: 1;
}

    .order-details strong {
        display: block;
        font-size: 1.1rem;
    }

.order-mods {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.order-user {
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: right;
}

.order-actions {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.barista-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.barista-item {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.b-qty {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 1.2rem;
}

.b-details {
    flex: 1;
}

.b-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.b-subitem {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

    .b-subitem::before {
        content: "•";
        color: var(--accent);
    }

.runner-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Loader Spinner */
.loader-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    animation: rotate 2s linear infinite;
}

    .spinner circle {
        stroke: var(--accent);
        stroke-linecap: round;
        animation: dash 1.5s ease-in-out infinite;
    }

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}
