/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #1f2847;
    --bg-surface: #151c2e;
    --bg-input: #0d1321;

    --text-primary: #f0f4ff;
    --text-secondary: #8b95b0;
    --text-muted: #5a647a;

    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-yellow: #f59e0b;
    --accent-yellow-glow: rgba(245, 158, 11, 0.3);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.3);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.3);

    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-brand: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-active: rgba(59, 130, 246, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.15);
    --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.15);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 60%);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: var(--radius-full);
}

/* ===== HEADER ===== */
.app-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(59, 130, 246, 0.5); }
}

.brand h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-stats {
    display: flex;
    gap: 10px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.stat-pill i {
    font-size: 1rem;
}

.stat-pill.active-pill {
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 30px 12px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ===== BOTÃO CADASTRAR ===== */
.btn-cadastrar {
    background: var(--gradient-success);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-cadastrar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.6s;
}

.btn-cadastrar:hover::before {
    left: 100%;
}

.btn-cadastrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-cadastrar:active {
    transform: translateY(0);
}

/* ===== PAINEL DE CONTROLE ===== */
.control-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.control-panel-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    padding: 14px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.control-panel-body {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.btn-control {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    color: white;
}

.btn-control i {
    font-size: 1.4rem;
}

.btn-control:hover {
    transform: translateY(-3px);
    color: white;
}

.btn-control:active {
    transform: translateY(0);
}

.btn-iniciar-todos {
    background: var(--accent-blue);
    box-shadow: 0 4px 15px var(--accent-blue-glow);
}
.btn-iniciar-todos:hover {
    background: #2563eb;
    box-shadow: 0 6px 25px var(--accent-blue-glow);
}

.btn-reiniciar-todos {
    background: var(--accent-yellow);
    box-shadow: 0 4px 15px var(--accent-yellow-glow);
}
.btn-reiniciar-todos:hover {
    background: #d97706;
    box-shadow: 0 6px 25px var(--accent-yellow-glow);
}

.btn-pausar-todos {
    background: #6b7280;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}
.btn-pausar-todos:hover {
    background: #4b5563;
    box-shadow: 0 6px 25px rgba(107, 114, 128, 0.4);
}

.btn-excluir-todos {
    background: var(--accent-red);
    box-shadow: 0 4px 15px var(--accent-red-glow);
}
.btn-excluir-todos:hover {
    background: #dc2626;
    box-shadow: 0 6px 25px var(--accent-red-glow);
}

.btn-transmitir {
    background: var(--accent-green);
    box-shadow: 0 4px 15px var(--accent-green-glow);
}
.btn-transmitir:hover {
    background: #059669;
    box-shadow: 0 6px 25px var(--accent-green-glow);
}

.btn-transmitir-b {
    background: var(--accent-purple);
    box-shadow: 0 4px 15px var(--accent-purple-glow);
}
.btn-transmitir-b:hover {
    background: #7c3aed;
    box-shadow: 0 6px 25px var(--accent-purple-glow);
}

/* ===== SEÇÕES DE TREINO A/B ===== */
.treino-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    border-left: 6px solid var(--accent-blue);
    padding-left: 15px;
    text-shadow: 0 0 15px var(--accent-blue-glow);
}

#sectionB .section-title {
    border-left-color: var(--accent-purple);
    text-shadow: 0 0 15px var(--accent-purple-glow);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 40px 0;
    position: relative;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ===== GRID DE TREINOS ===== */
.treinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* ===== CARD DE TREINO ===== */
.treino-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    animation: cardSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.treino-card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-4px);
}

.treino-card.concluido {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: var(--shadow-glow-green);
}

.treino-card.running {
    border-color: rgba(59, 130, 246, 0.5);
}

.treino-card.paused {
    border-color: rgba(245, 158, 11, 0.4);
}

/* Card Header - Nome do Aluno */
.card-header-custom {
    background: var(--gradient-primary);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.card-header-custom.bg-tipo-b {
    background: var(--gradient-warning);
}

.card-header-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.card-nome-aluno {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.card-ciclos-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-top: 6px;
}

/* Card Body - Timer */
.card-body-custom {
    padding: 20px;
}

.timer-display-wrapper {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.timer-display-wrapper.running {
    border-color: rgba(59, 130, 246, 0.3);
    animation: timerGlow 2s ease-in-out infinite;
}

.timer-display-wrapper.pausa {
    border-color: rgba(245, 158, 11, 0.3);
    animation: timerGlowYellow 2s ease-in-out infinite;
}

.timer-display-wrapper.concluido {
    border-color: rgba(16, 185, 129, 0.3);
}

@keyframes timerGlow {
    0%, 100% { box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.05); }
    50% { box-shadow: inset 0 0 40px rgba(59, 130, 246, 0.1); }
}

@keyframes timerGlowYellow {
    0%, 100% { box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.05); }
    50% { box-shadow: inset 0 0 40px rgba(245, 158, 11, 0.1); }
}

.timer-time {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
    line-height: 1;
    transition: color var(--transition-normal);
}

.timer-time.running {
    color: var(--accent-blue);
}

.timer-time.pausa {
    color: var(--accent-yellow);
}

.timer-time.concluido {
    color: var(--accent-green);
}

/* Status Atual */
.status-section {
    margin-bottom: 16px;
}

.status-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent-blue);
    margin-bottom: 8px;
    transition: var(--transition-normal);
}

.status-current.treino-ativo {
    border-left-color: var(--accent-blue);
}

.status-current.pausa-ativa {
    border-left-color: var(--accent-yellow);
}

.status-current.finalizado {
    border-left-color: var(--accent-green);
}

.status-current.parado {
    border-left-color: var(--text-muted);
}

.status-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.status-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-icon {
    font-size: 1.2rem;
}

.status-icon.treino {
    color: var(--accent-blue);
}
.status-icon.pausa {
    color: var(--accent-yellow);
}
.status-icon.concluido {
    color: var(--accent-green);
}
.status-icon.parado {
    color: var(--text-muted);
}

/* Próxima Ação */
.next-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.next-action i {
    color: var(--accent-purple);
}

/* Info do Card */
.card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-info-item {
    text-align: center;
    flex: 1;
}

.card-info-item .info-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.card-info-item .info-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 2px;
}

.info-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Progress Bar */
.progress-section {
    margin-bottom: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.progress-info span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-bar-custom {
    height: 6px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    filter: blur(4px);
}

/* Card Actions */
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    color: white;
    cursor: pointer;
}

.btn-card-action:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-card-action:active {
    transform: translateY(0);
}

.btn-card-iniciar {
    background: var(--accent-blue);
}
.btn-card-iniciar:hover {
    box-shadow: 0 4px 15px var(--accent-blue-glow);
}

.btn-card-reiniciar {
    background: var(--accent-yellow);
}
.btn-card-reiniciar:hover {
    box-shadow: 0 4px 15px var(--accent-yellow-glow);
}

.btn-card-pausar {
    background: #6b7280;
}
.btn-card-pausar:hover {
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-card-excluir {
    background: var(--accent-red);
}
.btn-card-excluir:hover {
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

/* ===== MENSAGEM TREINO CONCLUÍDO ===== */
.treino-concluido-msg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin: 12px 0;
    animation: msgPulse 2s ease-in-out infinite;
}

@keyframes msgPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.2); }
}

.treino-concluido-msg i {
    font-size: 2rem;
    color: var(--accent-green);
    display: block;
    margin-bottom: 8px;
}

.treino-concluido-msg .msg-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ESTADO VAZIO ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.empty-state .empty-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-surface);
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== MODAL CUSTOMIZADO ===== */
.modal-custom {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header-custom {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    border-bottom: 1px solid var(--border-color);
    padding: 18px 24px;
}

.modal-header-transmitir {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
}

.modal-header-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
}

.modal-title-wrapper i {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.modal-header-transmitir .modal-title-wrapper i {
    color: var(--accent-green);
}

.modal-header-danger .modal-title-wrapper i {
    color: var(--accent-red);
}

.modal-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-body-custom {
    padding: 24px;
}

.modal-footer-custom {
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
}

/* Custom Inputs */
.input-icon-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
    transition: var(--transition-normal);
}

.custom-input {
    background: var(--bg-input) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    padding: 14px 14px 14px 42px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: var(--transition-normal) !important;
}

.custom-input:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px var(--accent-blue-glow) !important;
}

.custom-input:focus + .input-icon,
.custom-input:focus ~ .input-icon {
    color: var(--accent-blue);
}

.custom-input::placeholder {
    color: var(--text-muted) !important;
}

.input-icon-wrapper label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--bg-secondary);
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    z-index: 3;
}

/* Modal Buttons */
.btn-modal-cancel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.btn-modal-cancel:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-modal-save {
    background: var(--gradient-success);
    color: white;
    font-weight: 700;
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.btn-modal-save:hover {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
    color: white;
}

.btn-transmitir-confirm {
    background: var(--gradient-success);
    color: white;
    font-weight: 700;
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.btn-transmitir-confirm:hover {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
    color: white;
}

/* ===== TRANSMITIR SUMMARY ===== */
.transmitir-summary {
    max-height: 400px;
    overflow-y: auto;
}

.transmitir-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: var(--transition-normal);
}

.transmitir-item:hover {
    border-color: var(--border-active);
}

.transmitir-item-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.transmitir-item-info {
    flex: 1;
}

.transmitir-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.transmitir-item-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ===== TOAST ===== */
.custom-toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.custom-toast-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.toast-icon {
    color: var(--accent-green);
}

.custom-toast .toast-body {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== CARD EXIT ANIMATION ===== */
.treino-card.removing {
    animation: cardSlideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardSlideOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .brand {
        justify-content: center;
    }

    .control-panel-body {
        flex-direction: column;
    }

    .btn-control {
        flex-direction: row;
        justify-content: center;
    }

    .treinos-grid {
        grid-template-columns: 1fr;
    }

    .timer-time {
        font-size: 2.5rem;
    }

    .card-info-row {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px 8px;
    }

    .btn-cadastrar {
        width: 100%;
    }
}
