/* ==========================================================================
   BROADCAST STUDIO PRO — DESIGN SYSTEM / 04. COMPONENTES (HYPER-GLASS)
   Cards de Vidro Fosco, Botões com Gradiente e Shimmer, Badges Neon e Formulários
   ========================================================================== */

/* =============================================================== CARDS === */

.bsp-card,
.glass-card-container,
.output-banner-card,
.db-card,
.result-card-hub {
    background: linear-gradient(135deg, rgba(14, 23, 44, 0.72) 0%, rgba(8, 14, 28, 0.82) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--bsp-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bsp-card:hover,
.glass-card-container:hover,
.output-banner-card:hover,
.db-card:hover,
.result-card-hub:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.12);
    transform: translateY(-3px);
}

/* Card Header */
.bsp-card-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bsp-card-title {
    font-family: var(--bsp-font-display);
    font-size: 1.1rem;
    font-weight: 750;
    color: #FFFFFF;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bsp-card-body {
    padding: 1.5rem;
}

/* =============================================================== BOTÕES === */

.bsp-btn,
.btn-master-gold,
.btn-gerar-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-family: var(--bsp-font-display);
    font-size: 0.92rem;
    font-weight: 750;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Botão Primário / Dourado de Transmissão */
.bsp-btn-primary,
.btn-master-gold,
.btn-gerar-premium {
    background: var(--bsp-gold-gradient);
    color: #0F0B00 !important;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.bsp-btn-primary:hover,
.btn-master-gold:hover,
.btn-gerar-premium:hover {
    background: linear-gradient(135deg, #FFF099 0%, #FBBF24 50%, #D97706 100%);
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
    color: #000000 !important;
}

/* Botão Cyan / Filmes */
.bsp-btn-cyan {
    background: var(--bsp-cyan-gradient);
    color: #03121C !important;
    box-shadow: 0 4px 18px rgba(34, 211, 238, 0.35);
}
.bsp-btn-cyan:hover {
    box-shadow: 0 6px 28px rgba(34, 211, 238, 0.6);
    transform: translateY(-2px);
}

/* Botão Secundário / Vidro */
.bsp-btn-secondary,
.btn-outline-light {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF !important;
    backdrop-filter: blur(10px);
}
.bsp-btn-secondary:hover,
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Tamanhos de Botões */
.bsp-btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    border-radius: 9px;
}
.bsp-btn-lg {
    padding: 0.9rem 1.85rem;
    font-size: 1.05rem;
    border-radius: 14px;
}

/* Efeito Shimmer Luminoso */
.bsp-btn-primary::after,
.btn-master-gold::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    animation: btnShimmer 4s infinite ease-in-out;
}

@keyframes btnShimmer {
    0% { left: -60%; }
    20% { left: 140%; }
    100% { left: 140%; }
}

/* =============================================================== BADGES & PILLS === */

.bsp-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FBBF24;
}

.badge-blue,
.badge-cyan {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7DD3FC;
}

.badge-emerald,
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34D399;
}

.badge-coral,
.badge-danger {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #FB7185;
}

/* Indicadores de Pulso / Orbes de Status */
.bsp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.bsp-dot-emerald,
.bsp-dot-success {
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
}

.bsp-dot-emerald::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid #10B981;
    animation: orbPulse 2s infinite ease-out;
}

.bsp-dot-gold,
.bsp-dot-warning {
    background: #F59E0B;
    box-shadow: 0 0 10px #F59E0B;
}

.bsp-dot-coral,
.bsp-dot-danger {
    background: #F43F5E;
    box-shadow: 0 0 10px #F43F5E;
}

@keyframes orbPulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* =============================================================== FORMULÁRIOS === */

.form-control,
.form-select,
.bsp-input {
    background: rgba(8, 14, 28, 0.75) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
}

.form-control:focus,
.form-select:focus,
.bsp-input:focus {
    background: rgba(12, 20, 40, 0.95) !important;
    border-color: var(--bsp-blue) !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.3) !important;
}

.form-control::placeholder {
    color: #64748B !important;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
}

/* =============================================================== TABELAS === */

.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--bsp-text) !important;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
}

.table thead th {
    background: rgba(6, 11, 24, 0.85) !important;
    color: #94A3B8 !important;
    font-family: var(--bsp-font-display);
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none !important;
    padding: 0.85rem 1.25rem !important;
}

.table tbody tr {
    background: rgba(14, 22, 42, 0.6) !important;
    backdrop-filter: blur(12px);
    transition: all 0.2s;
    border-radius: 12px;
}

.table tbody tr:hover {
    background: rgba(22, 34, 64, 0.85) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.table tbody td {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1rem 1.25rem !important;
    vertical-align: middle;
}

.table tbody tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table tbody tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* =============================================================== BARRA FLUTUANTE === */

.floating-batch-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 16, 32, 0.92);
    backdrop-filter: blur(28px);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    border-radius: 20px;
    padding: 0.85rem 1.75rem;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
    animation: slideUpFloat 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpFloat {
    from { opacity: 0; transform: translate(-50%, 30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* =============================================================== MODAIS === */

.modal-content {
    background: rgba(10, 16, 32, 0.94) !important;
    backdrop-filter: blur(32px) !important;
    -webkit-backdrop-filter: blur(32px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.15) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1.5rem !important;
}
