/* Custom Payments CSS - Latinconsulting LLC */

/* 1. Floating Cart Badge Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.4);
    z-index: 1050;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.floating-cart:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.6);
}
.floating-cart .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 50%;
    background-color: #dc3545;
    color: #fff;
    border: 2px solid #fff;
}

/* 2. Cart Offcanvas Drawer */
#cartOffcanvas {
    width: 420px;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.cart-item {
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}
.cart-item:hover {
    transform: scale(1.02);
}
.cart-item-name {
    font-weight: 700;
    color: #111;
    font-size: 15px;
}
.cart-item-desc {
    font-size: 12px;
    color: #6c757d;
}
.cart-item-price {
    font-weight: 800;
    color: #ff9800;
    font-size: 16px;
}

/* 3. Checkout Page & Interactive Card */
.checkout-section {
    padding: 80px 0 120px;
}
.card-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 350px;
    height: 200px;
    margin: 0 auto 30px;
}
.credit-card-mock {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
}
.credit-card-mock.flipped {
    transform: rotateY(180deg);
}
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
}
.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    padding: 20px 0;
    justify-content: flex-start;
}
.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-radius: 5px;
}
.card-logo {
    font-weight: bold;
    font-size: 20px;
    font-style: italic;
    text-align: right;
}
.card-number {
    font-size: 19px;
    letter-spacing: 2px;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.card-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    text-transform: uppercase;
}
.card-info-label {
    font-size: 8px;
    color: #ccc;
    margin-bottom: 2px;
}
.card-magnetic-strip {
    width: 100%;
    height: 40px;
    background-color: #111;
    margin-top: 10px;
}
.card-signature-area {
    width: 80%;
    height: 35px;
    background-color: #fff;
    color: #111;
    margin: 20px auto 0;
    padding: 5px 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-radius: 3px;
    font-size: 14px;
    font-style: italic;
}
.card-cvv-strip {
    background-color: #ff9800;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

/* 4. Payment Link Indicator & Spinner */
.processing-overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-direction: column;
}

/* 5. Invoice styling & print support */
.invoice-card {
    background: #fff;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 40px;
}
.invoice-header {
    border-bottom: 2px solid #f1f2f5;
    padding-bottom: 30px;
    margin-bottom: 30px;
}
.invoice-badge-paid {
    background-color: #d4edda;
    color: #155724;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}
.invoice-badge-pending {
    background-color: #fff3cd;
    color: #856404;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}
@media print {
    body * {
        visibility: hidden;
    }
    .print-area, .print-area * {
        visibility: visible;
    }
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

/* 6. Admin Panel Sidebar & Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
}
.admin-sidebar {
    width: 260px;
    background-color: #1a1e29;
    color: #c2c7d0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    flex-shrink: 0;
}
.admin-brand {
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #2c3243;
    display: flex;
    align-items: center;
}
.admin-nav {
    list-style: none;
    padding: 15px 0;
    margin: 0;
    flex-grow: 1;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #c2c7d0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
}
.admin-nav-link:hover, .admin-nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
    border-left: 4px solid #ffc107;
}
.admin-nav-link i {
    margin-right: 12px;
    font-size: 18px;
}
.admin-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}
.admin-card-metric {
    border-radius: 12px;
    border: none;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.admin-card-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}
.admin-card-warning {
    background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}
.admin-card-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.admin-card-info {
    background: linear-gradient(135deg, #3a7bd5 0%, #3a6073 100%);
}
.admin-card-body {
    padding: 25px;
}
.admin-metric-value {
    font-size: 28px;
    font-weight: 800;
}
.admin-metric-title {
    font-size: 14px;
    opacity: 0.85;
    text-transform: uppercase;
}

/* 7. Setup & Login Styling */
.admin-login-body {
    background-color: #1a1e29;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    color: #fff;
}
.admin-login-card .form-control {
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.admin-login-card .form-control:focus {
    background-color: rgba(255,255,255,0.12);
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* 8. QR Code crypto overlay */
.crypto-address-box {
    background-color: #f1f2f5;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
