/* ===== HOME PAGE STYLES ===== */
.order-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 20px;
    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-divider {
    min-height: 3px;
    background: linear-gradient(90deg, #facc15 0%, #eab308 50%, #facc15 100%);
    margin: 20px 0;
}

.order-header {
    padding: 20px;
    position: relative;
}

.order-header-logo {
    height: auto;
    margin-bottom: 20px;
}

.order-header h2 {
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.order-header p {
    color: #9ca3af;
    font-size: 16px;
}

/* ===== AUTH BUTTONS CONTAINER ===== */
.auth-buttons-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== AUTH LINKS ===== */
.btn-login-link {
    display: inline-block;
    padding: 12px 24px;
    background: #facc15;
    color: #000;
    text-decoration: none;
    border-radius: 999px;
    margin: 5px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.btn-login-link:hover {
    background: #fde047;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
    text-decoration: none;
}

.btn-register-link {
    display: inline-block;
    padding: 12px 24px;
    background: #171717;
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
    text-decoration: none;
    border-radius: 999px;
    margin: 5px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.btn-register-link:hover {
    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);
    text-decoration: none;
}

/* ===== BACK BUTTON ===== */
.btn-back {
    padding: 10px 20px;
    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-back:hover {
    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);
}

/* ===== RECEIPTS LIST ===== */
.receipts-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.receipts-header h2 {
    color: #fff;
    margin: 0;
    font-weight: 700;
    font-size: 28px;
}

.receipts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.receipt-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 20px 25px;
    background: #262626;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.receipt-item:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.15);
}

.receipt-item:hover .receipt-number,
.receipt-item:hover .receipt-date,
.receipt-item:hover .receipt-value,
.receipt-item:hover .receipt-rest {
    color: #facc15;
}

.receipt-number {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.receipt-date {
    color: #9ca3af;
    font-size: 14px;
}

.receipt-value {
    font-weight: 600;
    color: #fff;
    text-align: right;
    font-size: 15px;
}

.receipt-rest {
    grid-column: 1 / -1;
    color: #9ca3af;
    font-size: 13px;
    margin-top: 8px;
}

/* ===== EMPTY STATE ===== */
.receipts-empty {
    text-align: center;
    padding: 60px 40px;
    color: #9ca3af;
    background: #171717;
    border-radius: 16px;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.receipts-empty p {
    font-size: 16px;
    margin: 0;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 1000;
    pointer-events: auto;
}

/* ===== LOADING STATE ===== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.loading-state .spinner {
    margin-bottom: 20px;
}

.loading-state p {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #262626;
    border-top: 5px solid #facc15;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    margin-top: 15px;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    padding: 16px 20px;
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #991b1b;
    border: none;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

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

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

.mt-4 {
    margin-top: 1.5rem;
}

/* ===== POSITIONS SECTION ===== */
.positions-section {
    margin: 30px 0;
}

.positions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    font-size: 14px;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.positions-table tbody tr:nth-of-type(odd) {
    background-color: rgba(250, 204, 21, 0.03);
}

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

.positions-table th {
    background: #171717;
    color: #facc15;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid rgba(250, 204, 21, 0.3);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.positions-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
    color: #fff !important;
}

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

.ta-right {
    text-align: right !important;
}

.ta-center {
    text-align: center !important;
}

/* ===== TOTAL SECTION ===== */
/*.total-section {
    text-align: right;
    margin: 30px 0;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15) 0%, rgba(234, 179, 8, 0.1) 100%);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
}

.total-amount {
    font-size: 1.4em;
    font-weight: 700;
    color: #facc15;
    display: flex;
    justify-content: space-between;
}
*/
.page-content {
    padding: 20px;
    position: relative;
}

.page-header-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.page-content h2 {
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

    /* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
        .order-container {
            margin: 10px;
            padding: 15px;
            border-radius: 12px;
        }

        .order-header h2 {
            font-size: 22px;
        }

        .auth-buttons-container {
            flex-direction: column;
            gap: 15px;
        }

        .btn-login-link,
        .btn-register-link {
            width: 100%;
            max-width: 250px;
        }

        .receipt-item {
            grid-template-columns: 1fr;
            gap: 8px;
            padding: 15px;
        }

        .receipt-value {
            text-align: left;
        }

        .positions-table {
            font-size: 12px;
        }

            .positions-table th,
            .positions-table td {
                padding: 8px 10px;
            }
    }

