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

:root {
    --clr-primary: #2563eb;
    --clr-primary-dark: #1d4ed8;
    --clr-accent: #f59e0b;
    --clr-bg: #0f172a;
    --clr-surface: #1e293b;
    --clr-surface-light: #334155;
    --clr-text: #f1f5f9;
    --clr-text-muted: #94a3b8;
    --clr-border: #475569;
    --clr-error: #ef4444;
    --clr-success: #22c55e;
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1200px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--clr-accent);
}

/* Header */
.header {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-text);
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--clr-primary);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--clr-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav a:hover {
    color: var(--clr-text);
}

.locale-switch {
    display: flex;
    gap: 0.25rem;
}

.locale-link {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}

.locale-link.active {
    background: var(--clr-primary);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

.btn-primary:hover {
    background: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--clr-text);
    border-color: var(--clr-border);
}

.btn-outline:hover {
    border-color: var(--clr-text);
    color: var(--clr-text);
}

/* Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--clr-bg) 0%,
        var(--clr-surface) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(
            circle at 30% 50%,
            rgba(37, 99, 235, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 50%,
            rgba(245, 158, 11, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        135deg,
        var(--clr-text) 0%,
        var(--clr-primary) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Services */
.services {
    padding: 5rem 0;
    background: var(--clr-surface);
}

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

.service-card {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition:
        transform 0.2s,
        border-color 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--clr-primary);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--clr-primary);
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Order Tracking */
.order-section {
    padding: 4rem 0;
}

.order-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.order-card-wide {
    max-width: 1100px;
}

.order-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.order-id {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 2rem;
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.status-timeline::before {
    content: "";
    position: absolute;
    top: calc(1rem + 8px);
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--clr-surface-light);
    z-index: 1;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 0.5rem;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--clr-surface-light);
    border: 2px solid var(--clr-border);
    transition:
        background 0.3s,
        border-color 0.3s;
}

.status-step.completed .status-dot {
    background: var(--clr-success);
    border-color: var(--clr-success);
}

.status-step.active .status-dot {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.status-label {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    text-align: center;
    max-width: 70px;
    line-height: 1.2;
}

.status-step.completed .status-label {
    color: var(--clr-success);
}

.status-step.active .status-label {
    color: var(--clr-primary);
    font-weight: 600;
}

.status-step.rejected .status-dot {
    background: var(--clr-error);
    border-color: var(--clr-error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
}

.status-step.rejected .status-label {
    color: var(--clr-error);
    font-weight: 600;
}

.status-step.warning .status-dot {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.status-step.warning .status-label {
    color: var(--clr-accent);
    font-weight: 600;
}

.order-details {
    border-top: 1px solid var(--clr-border);
    padding-top: 1.5rem;
}

.order-details h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid var(--clr-surface-light);
}

.details-table tr:last-child {
    border-bottom: none;
}

.details-table td {
    padding: 0.65rem 0;
    font-size: 0.9rem;
    vertical-align: top;
}

.details-table td:first-child {
    color: var(--clr-text-muted);
    width: 20%;
}

.details-table td:last-child {
    color: var(--clr-text);
}

.order-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.payment-qr {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    color: var(--clr-text);
}

.payment-qr h2 {
    margin-bottom: 0.5rem;
}

.payment-qr p {
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.qr-image {
    display: inline-block;
    width: 200px;
    height: 200px;
    image-rendering: pixelated;
}

.payment-toggle-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.payment-details {
    margin: 0 auto;
    text-align: left;
}

.payment-details td {
    padding: 0.3rem 0.75rem;
    vertical-align: top;
}

.payment-details td:first-child {
    color: var(--clr-text-muted);
    white-space: nowrap;
}

.payment-details td:last-child {
    font-family: monospace;
    word-break: break-all;
}

.flash-messages {
    margin-top: 1.5rem;
}

.filaments-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.refresh-form {
    flex-shrink: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filaments-table th {
    text-align: left;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--clr-border);
}

.filaments-table td {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--clr-surface-light);
    vertical-align: middle;
}

.color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.5rem;
    border: 1px solid var(--clr-border);
}

.color-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.color-select-wrapper .color-swatch {
    position: absolute;
    left: 12px;
    z-index: 1;
    pointer-events: none;
}

.form-group .color-select-wrapper select {
    padding-left: 38px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.form-group .color-select-wrapper select,
.form-group .color-select-wrapper ::picker(select) {
    appearance: base-select;
}
.form-group .color-select-wrapper select::picker-icon {
    display: none;
}
.form-group .color-select-wrapper ::picker(select) {
    border-radius: var(--radius-sm);
    border: none;
}
.form-group .color-select-wrapper select option {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-group .color-select-wrapper select option::checkmark {
    z-index: 10;
}

.price-input {
    width: 120px;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-surface);
    color: var(--clr-text);
    font-size: 0.9rem;
    font-family: inherit;
}

.flash-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.flash-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--clr-error);
    color: #fca5a5;
}

.flash-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--clr-success);
    color: #86efac;
}

.manage-form {
    border-top: 1px solid var(--clr-border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.manage-form .form-group {
    margin-bottom: 1rem;
}

.manage-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.manage-form input,
.manage-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-surface);
    color: var(--clr-text);
    font-size: 0.95rem;
    font-family: inherit;
}

.manage-form textarea {
    resize: vertical;
}

.manage-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.manage-actions .btn-danger {
    background: var(--clr-error);
    color: #fff;
    border: none;
}

.manage-actions .btn-danger:hover {
    opacity: 0.9;
}

.manage-actions .btn-warning {
    background: var(--clr-accent);
    color: #fff;
    border: none;
}

.manage-actions .btn-warning:hover {
    opacity: 0.9;
}

.manage-notice {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--clr-accent);
}

@media (max-width: 640px) {
    .status-timeline {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .status-timeline::before {
        display: none;
    }
}

/* Upload Section */
.upload-section {
    padding: 5rem 0;
}

.upload-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--clr-text);
}

.required {
    color: var(--clr-error);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--clr-primary);
}

.form-group input:read-only {
    opacity: 0.7;
    cursor: not-allowed;
    border-style: dashed;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2394a3b8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--clr-surface);
    color: var(--clr-text);
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--clr-bg);
    border: 1px dashed var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.file-input-wrapper:hover .file-label {
    border-color: var(--clr-primary);
}

.file-label.has-file {
    border-color: var(--clr-primary);
    border-style: solid;
    color: var(--clr-text);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin-top: 0.5rem;
}

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

/* Errors */
.errors {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--clr-error);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
}

.errors ul {
    list-style: none;
}

.error-item {
    color: var(--clr-error);
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.error-item strong {
    font-weight: 600;
}

/* Contact */
.contact {
    padding: 5rem 0;
    background: var(--clr-surface);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-item a {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Success */
.success-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.success-card {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 4rem 3rem;
}

.success-icon {
    font-size: 3rem;
    color: var(--clr-success);
    margin-bottom: 1.5rem;
}

.success-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-desc {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.success-tracking {
    margin-bottom: 1.5rem;
}

/* Auth */
.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--clr-primary);
}

.auth-alt {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.auth-alt a {
    font-weight: 600;
}

.nav-user {
    color: var(--clr-accent) !important;
    font-weight: 600 !important;
}

/* Footer */
.footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive */
/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.order-row {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    transition: border-color 0.2s;
}

.order-row:hover {
    border-color: var(--clr-primary);
}

.order-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.order-row-info {
    flex: 1;
    min-width: 0;
}

.order-row-id {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.order-row-id code {
    color: var(--clr-text-muted);
    font-size: 0.75rem;
}

.order-row-date {
    color: var(--clr-text-muted);
    font-size: 0.75rem;
}

.order-row-meta {
    font-size: 0.9rem;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.meta-sep {
    color: var(--clr-border);
}

.order-row-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.status-badge.status-waiting {
    background: rgba(245, 158, 11, 0.15);
    color: var(--clr-accent);
}

.status-badge.status-quoted {
    background: rgba(37, 99, 235, 0.15);
    color: var(--clr-primary);
}

.status-badge.status-approved {
    background: rgba(34, 197, 94, 0.15);
    color: var(--clr-success);
}

.status-badge.status-printing {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.status-badge.status-shipping {
    background: rgba(245, 158, 11, 0.15);
    color: var(--clr-accent);
}

.status-badge.status-delivered {
    background: rgba(34, 197, 94, 0.15);
    color: var(--clr-success);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.orders-empty {
    text-align: center;
    color: var(--clr-text-muted);
    padding: 3rem 0;
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .order-row-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-row-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .upload-form {
        padding: 1.5rem;
    }

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

/* Dashboard Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-card .stat-number {
    margin-top: auto;
}

.stat-heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-card:nth-child(1) .stat-number {
    color: var(--clr-accent);
}

.stat-card:nth-child(2) .stat-number {
    color: var(--clr-primary);
}

.stat-card:nth-child(3) .stat-number {
    color: #8b5cf6;
}

.stat-card:nth-child(4) .stat-number {
    color: var(--clr-text);
}

@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Machine Management */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.status-dot-lg {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.4rem;
}

.status-idle {
    background: var(--clr-success);
}

.status-printing {
    background: var(--clr-primary);
}

.status-maintenance {
    background: var(--clr-accent);
}

.status-offline {
    background: #6b7280;
}

.machine-actions {
    white-space: nowrap;
}

.machine-actions form {
    display: inline;
}

.machine-actions .btn-sm {
    margin-right: 0.25rem;
}

.maint-overdue {
    color: var(--clr-error);
    font-weight: 600;
}

.maint-upcoming {
    color: var(--clr-accent);
}

.maint-done {
    color: var(--clr-success);
}

.maint-none {
    color: var(--clr-text-muted);
}
