/* Old Tower Cassa - Custom Styles */
:root {
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --brand-primary: #0d6efd;
    --brand-dark: #121824;
    --brand-padel: #0d9488;
    --brand-calcetto: #16a34a;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: #1e293b;
    background-color: #f1f5f9;
    -webkit-tap-highlight-color: transparent;
}

/* Card Enhancements */
.card {
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    border-top-left-radius: 0.85rem !important;
    border-top-right-radius: 0.85rem !important;
}

/* Stat Cards */
.stat-card {
    border-radius: 0.85rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Touch-Friendly Quick Sale Buttons */
.btn-touch {
    min-height: 48px;
    font-weight: 600;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-product {
    height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s ease, filter 0.1s ease;
}

.btn-product:active {
    transform: scale(0.96);
}

.btn-product i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.btn-product .product-price {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 700;
}

/* Keypad Grid for Fast Numbers */
.num-btn {
    height: 52px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 0.5rem;
}

/* Live Badge Pulsing */
.pulse-live {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* HTMX Loading Indicator */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Table styling */
.table-custom {
    margin-bottom: 0;
}
.table-custom th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.table-custom td {
    vertical-align: middle;
    font-size: 0.925rem;
}

/* WhatsApp Message Preview Box */
.whatsapp-preview {
    background-color: #e5ddd5;
    background-image: radial-gradient(#d1c7b7 1px, transparent 1px);
    background-size: 16px 16px;
    border-radius: 1rem;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111b21;
}

.whatsapp-bubble {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    white-space: pre-wrap;
    font-size: 0.92rem;
    line-height: 1.45;
}

/* Form controls focus */
.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.nav-pills .nav-link {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
}

.nav-pills .nav-link.active {
    background-color: #0f172a;
    color: #ffffff;
}

/* Custom Scrollbar for movement table */
.custom-scroll-container {
    max-height: 600px;
    overflow-y: auto;
}

.custom-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.custom-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}