/* ===== GLOBAL STYLES ===== */
html, body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background-color: #0a0a0a !important;
    color: #fff;
    min-height: 100vh;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* ===== LINKS ===== */
a, .btn-link {
    color: #facc15;
    text-decoration: none;
    transition: all 0.2s;
}

a:hover, .btn-link:hover {
    color: #fde047;
    text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn-primary {
    color: #000;
    background-color: #facc15;
    border-color: #facc15;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #fde047;
    border-color: #fde047;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

.btn-secondary {
    color: #facc15;
    background-color: transparent;
    border-color: #facc15;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(250, 204, 21, 0.15);
    border-color: #fde047;
    color: #fde047;
}

.btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-danger:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(250, 204, 21, 0.25), 0 0 0 0.25rem rgba(250, 204, 21, 0.4);
}

/* ===== CONTENT ===== */
.content {
    padding-top: 1.1rem;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 700;
}

/* ===== FORM VALIDATION ===== */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #22c55e;
    border-color: #22c55e;
}

.invalid {
    outline: 1px solid #dc2626;
    border-color: #dc2626;
}

.validation-message {
    color: #fca5a5;
}

/* ===== FORM CONTROLS ===== */
.form-control, .form-select {
    background-color: #171717 !important;
    color: #fff !important;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 10px;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    background-color: #171717 !important;
    color: #fff !important;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.form-control::placeholder {
    color: #6b7280;
}

.form-label {
    font-weight: 600;
    color: #9ca3af;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: #6b7280;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    color: #9ca3af;
}

/* ===== CHECKBOX ===== */
.form-check-input {
    background-color: #171717;
    border-color: rgba(250, 204, 21, 0.3);
}

.form-check-input:checked {
    background-color: #facc15;
    border-color: #facc15;
}

.darker-border-checkbox.form-check-input {
    border-color: rgba(250, 204, 21, 0.3);
}

/* ===== CARDS ===== */
.card {
    background-color: #171717 !important;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-header {
    background-color: #171717 !important;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    color: #fff;
}

.card-body {
    color: #fff;
}

.card-footer {
    background-color: #171717 !important;
    border-top: 1px solid rgba(250, 204, 21, 0.2);
}

/* ===== TABLES ===== */
.table {
    color: #fff;
}

.table thead th {
    background-color: #171717;
    border-bottom: 2px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
}

.table tbody tr {
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
}

.table tbody tr:hover {
    background-color: rgba(250, 204, 21, 0.05);
}

.table td, .table th {
    border-color: rgba(250, 204, 21, 0.1);
    color: #fff !important;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
}

.alert-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.alert-warning {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #9a3412;
}

.alert-danger {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #991b1b;
}

.alert-success {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    color: #166534;
}

/* ===== BLAZOR ERROR BOUNDARY ===== */
.blazor-error-boundary {
    background: #dc2626;
    padding: 1rem 1.25rem;
    color: white;
    border-radius: 12px;
}

.blazor-error-boundary::after {
    content: "Wystąpił błąd.";
}

/* ===== BLAZOR ERROR UI ===== */
#blazor-error-ui {
    background: #dc2626;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-radius: 12px 12px 0 0;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    color: #fff;
}

/* ===== UTILITY CLASSES ===== */
.text-accent {
    color: #facc15 !important;
}

.border-accent {
    border-color: #facc15 !important;
}

.bg-dark-custom {
    background-color: #0a0a0a !important;
}

.bg-card {
    background-color: #171717 !important;
}

/* ===== MODAL ===== */
.modal-content {
    background-color: #171717 !important;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 16px;
}

.modal-header {
    background-color: #171717;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    color: #fff;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    background-color: #171717;
    color: #fff;
}

.modal-footer {
    background-color: #171717;
    border-top: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 0 0 16px 16px;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    background-color: #171717;
    border: 1px solid rgba(250, 204, 21, 0.2);
    color: #fff;
    border-radius: 10px;
    margin: 0 4px;
    transition: all 0.2s;
}

.pagination .page-link:hover {
    background-color: rgba(250, 204, 21, 0.15);
    border-color: #facc15;
    color: #facc15;
}

.pagination .page-item.active .page-link {
    background-color: #facc15;
    border-color: #facc15;
    color: #000;
}

/* ===== CUSTOM PAGINATION (ReceiptsPage) ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-page {
    padding: 12px 25px;
    background: #171717;
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.btn-page:hover:not(:disabled) {
    background: rgba(250, 204, 21, 0.15);
    border-color: #facc15;
    color: #facc15;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

.btn-page:disabled {
    background: #262626;
    color: #6b7280;
    border-color: rgba(250, 204, 21, 0.1);
    cursor: not-allowed;
}

.page-info {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

/* ===== BADGES ===== */
.badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 600;
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    background-color: #171717 !important;
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #fff !important;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(250, 204, 21, 0.15);
    color: #facc15 !important;
}

.dropdown-divider {
    border-color: rgba(250, 204, 21, 0.2);
}

/* ===== LIST GROUP ===== */
.list-group-item {
    background-color: #171717 !important;
    border: 1px solid rgba(250, 204, 21, 0.1);
    color: #fff;
}

.list-group-item:hover {
    background-color: rgba(250, 204, 21, 0.05);
}

.list-group-item.active {
    background-color: #facc15 !important;
    border-color: #facc15 !important;
    color: #000 !important;
}

/* ===== NAV TABS ===== */
.nav-tabs {
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
}

.nav-tabs .nav-link {
    color: #9ca3af;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    color: #facc15;
    border-bottom-color: rgba(250, 204, 21, 0.3);
}

.nav-tabs .nav-link.active {
    color: #facc15;
    background-color: transparent;
    border-bottom-color: #facc15;
}

/* ===== INPUT GROUP ===== */
.input-group-text {
    background-color: #171717;
    border: 1px solid rgba(250, 204, 21, 0.2);
    color: #fff;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid #facc15;
    outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .card {
        border-radius: 12px;
    }

    .btn {
        border-radius: 999px;
    }
}


.page-container {
    max-width: 950px;
    min-height: 300px;
    margin: 0px auto 20px auto;
    padding: 10px; 
    background: #171717;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.order-details-header
{
    background: #171717;
    color: #fff;
    padding: 10px 20px;
    position: relative;
}

.order-details-divider {
    min-height: 3px;
    padding: 0;
    background: linear-gradient(90deg, #facc15 0%, #eab308 50%, #facc15 100%);
    margin: 20px 0;
}


.order-details-container {
    max-width: 950px;
    margin: 0 auto;
/*    padding: 20px;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
    background: #171717;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 16px;
*/
}

.container-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}



/* ===== FOOTER ===== */
.site-footer {
    margin-top: 40px;
    padding: 10px;
    background: #171717;
    border-top: 1px solid rgba(250, 204, 21, 0.2);
}

/* ===== USER MENU ===== */
.user-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    background: #171717;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    flex-wrap: nowrap;
}

.user-menu-logo {
    height: 40px;
    cursor: pointer;
    flex-shrink: 0;
}

.user-menu-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: flex-end;
}

.user-greeting {
    color: #facc15;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.btn-menu {
    padding: 8px 16px;
    background: #171717;
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-menu:hover {
    background: rgba(250, 204, 21, 0.15);
    border-color: #facc15;
    color: #facc15;
}

.btn-logout {
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-logout:hover {
    background: rgba(220, 38, 38, 0.3);
    border-color: #ef4444;
    color: #f44;
}

/* ===== USER MENU RESPONSIVE ===== */
@media (max-width: 768px) {
    .user-menu {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .user-menu-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .user-greeting {
        max-width: 120px;
        font-size: 12px;
    }

    .btn-menu, .btn-logout {
        padding: 6px 12px;
        font-size: 12px;
    }

    .user-menu-logo {
        height: 32px;
    }
}

.footer-content {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 15px;*/
}

.footer-copyright {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #facc15;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

    .footer-link:hover {
        color: #fde047;
        text-decoration: underline;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-footer {
        padding: 20px 15px;
        margin-top: 30px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .footer-link {
        font-size: 13px;
    }
}
