/* ========================================================
   Event Registration Management - Mobile-First CSS (v2.0)
   ======================================================== */

:root {
    --primary-color: #1e3a8a;
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-tap-highlight-color: transparent;
}

/* Gradients */
.bg-primary-gradient {
    background: var(--primary-gradient) !important;
}

.bg-gradient-login {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
}

.btn-light-translucent {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.btn-light-translucent:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Brand styling */
.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1.1rem;
}

.brand-avatar {
    width: 68px;
    height: 68px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges and Soft Buttons */
.btn-warning-soft {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    transition: all 0.15s ease;
}

.btn-warning-soft:hover {
    background-color: #fde68a;
    color: #78350f;
    transform: scale(1.02);
}

.fs-7 {
    font-size: 0.825rem;
}

/* Mobile Touch-Friendly Checkboxes */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.table > :not(caption) > * > * {
    padding: 0.75rem 0.65rem;
}

/* Active Row Highlight when Checked */
tr.row-selected {
    background-color: #eff6ff !important;
}

/* Upload Dropzone */
.upload-dropzone {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.upload-dropzone:hover {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
}

/* Mobile Floating Bottom Bar */
.mobile-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.25s ease-in-out;
    transform: translateY(110%);
}

.mobile-floating-bar.active {
    transform: translateY(0);
}

/* Modal Details Table */
.details-modal-table td {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    vertical-align: middle;
}

.details-modal-table td.detail-label {
    font-weight: 600;
    color: var(--text-muted);
    width: 40%;
    background-color: #f8fafc;
}

.details-modal-table td.detail-value {
    color: var(--text-dark);
}

/* Kit Desk Styling */
#deskSearchInput:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.desk-give-btn {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.desk-give-btn:active {
    transform: scale(0.98);
}

/* Mobile Table Responsiveness */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .table > :not(caption) > * > * {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }

    body {
        padding-bottom: 75px;
    }
}
