
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.soundsation-main-app {
    background: #080d1a;
    color: #f1f5f9;
    padding: 30px;
    border-radius: 20px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1700px;
    margin: 20px auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.85);
    box-sizing: border-box;
}

.soundsation-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.soundsation-brand-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.soundsation-controls-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.soundsation-lang-selector {
    display: flex;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-weight: 700;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #1e293b;
    color: #38bdf8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.soundsation-month-picker-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 8px 12px;
    border-radius: 14px;
    margin-bottom: 24px;
    overflow-x: auto;
    white-space: nowrap;
}

.month-chip {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-chip:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.month-chip.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.soundsation-select-custom {
    background: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}

.soundsation-badge-online {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.soundsation-btn-accent {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.soundsation-btn-secondary {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.soundsation-btn-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.soundsation-mode-toggle {
    display: inline-flex;
    background: #0f172a;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    margin-bottom: 25px;
}

.soundsation-toggle-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.soundsation-toggle-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
}

/* Day Section */
.soundsation-day-section {
    margin-bottom: 35px;
}

.soundsation-day-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    padding: 14px 22px;
    border-radius: 14px;
    border-left: 4px solid #38bdf8;
    margin-bottom: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.soundsation-day-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.soundsation-day-date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

/* HORIZONTAL CARDS IN A LINE ROW */
.soundsation-cards-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.soundsation-slot-card-line {
    background: linear-gradient(145deg, #0d1527 0%, #111a2e 100%);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 180px 1.2fr 130px 1.2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.soundsation-slot-card-line:hover {
    border-color: #38bdf8;
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}

.soundsation-time-box {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.soundsation-time-text {
    font-size: 13px;
    font-weight: 800;
    color: #38bdf8;
}

.soundsation-field-group {
    display: flex;
    flex-direction: column;
}

.soundsation-field-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 4px;
}

.soundsation-card-input, .soundsation-card-select {
    width: 100%;
    background: #182234;
    border: 1px solid #27354d;
    color: #f8fafc;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    box-sizing: border-box;
    transition: all 0.2s;
}

.soundsation-card-input:focus, .soundsation-card-select:focus {
    border-color: #38bdf8;
    background: #1e2d45;
    outline: none;
}

/* Modals & Auth */
.soundsation-modal {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.soundsation-modal-content {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 850px;
    color: #fff;
    max-height: 85vh;
    overflow-y: auto;
}

.soundsation-preset-day-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.soundsation-preset-day-title {
    font-size: 15px;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.soundsation-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 15px;
}

.soundsation-log-table th, .soundsation-log-table td {
    border: 1px solid #334155;
    padding: 10px;
    text-align: left;
}

.soundsation-auth-card {
    max-width: 440px;
    margin: 60px auto;
    background: #0d1527;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 35px;
    color: #fff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.9);
}

.soundsation-auth-header h2 {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(90deg, #38bdf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 10px 0;
    text-align: center;
}

@media (max-width: 1200px) {
    .soundsation-slot-card-line {
        grid-template-columns: 1fr 1fr;
    }
}


/* New Managers Schedule — interface refinada */
.soundsation-admin-dashboard { max-width: 1600px; margin: 22px 20px 0 0; }
.soundsation-admin-dashboard > div:first-child {
    background: radial-gradient(circle at 85% 15%, rgba(34,211,238,.20), transparent 34%),
                linear-gradient(135deg,#0b1224 0%,#172554 55%,#111827 100%) !important;
    padding: 30px !important; border-radius: 22px !important;
    box-shadow: 0 18px 48px rgba(15,23,42,.18);
}
.soundsation-admin-dashboard > div:first-child h1 { font-size: clamp(24px,3vw,34px) !important; letter-spacing: -.8px !important; }
.soundsation-admin-dashboard > div:first-child p { color:#cbd5e1 !important; line-height:1.65; }
.soundsation-admin-dashboard .soundsation-btn-accent {
    display:inline-flex; align-items:center; gap:8px; padding:13px 18px;
    background:linear-gradient(135deg,#22d3ee,#3b82f6); color:#061426;
    border-radius:12px; font-weight:800; box-shadow:0 8px 24px rgba(34,211,238,.18);
}
.soundsation-admin-dashboard #soundsation-app-root { margin-top:22px; }
.soundsation-main-app {
    background:linear-gradient(145deg,#080d1a,#0c1427 55%,#101a31) !important;
    border:1px solid rgba(148,163,184,.16); box-shadow:0 22px 55px rgba(15,23,42,.22) !important;
}
.soundsation-app-header { border-color:rgba(56,189,248,.18) !important; }
.soundsation-brand-logo { letter-spacing:2px !important; }
.soundsation-btn-accent,.soundsation-btn-purple,.soundsation-btn-secondary,.soundsation-toggle-btn {
    border-radius:11px !important; transition:transform .18s ease, box-shadow .18s ease !important;
}
.soundsation-btn-accent:hover,.soundsation-btn-purple:hover,.soundsation-btn-secondary:hover,.soundsation-toggle-btn:hover {
    transform:translateY(-1px); box-shadow:0 8px 22px rgba(0,0,0,.22);
}
.month-chip { border-radius:10px !important; }
.month-chip.active { box-shadow:0 5px 18px rgba(14,165,233,.25) !important; }
.soundsation-admin-dashboard .notice { border-radius:10px; }
@media (max-width:782px) {
    .soundsation-admin-dashboard { margin-right:10px; }
    .soundsation-admin-dashboard > div:first-child { padding:20px !important; }
    .soundsation-admin-dashboard > div:first-child > div { min-width:0; }
    .soundsation-admin-dashboard > div:first-child a { margin-top:12px; }
}

/* v6.2.0 — presença da equipa e dias em acordeão */
.soundsation-presence-panel {
    margin: 18px 0 24px; padding: 18px; border-radius: 18px;
    background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(15,35,58,.92));
    border: 1px solid rgba(56,189,248,.22); box-shadow: 0 12px 32px rgba(0,0,0,.18);
    color: #e2e8f0;
}
.soundsation-presence-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.soundsation-presence-heading strong { display:block; color:#f8fafc; font-size:16px; }
.soundsation-presence-heading small { display:block; color:#94a3b8; margin-top:4px; }
.soundsation-share-location { border:1px solid rgba(34,211,238,.45); border-radius:10px; padding:10px 14px; color:#cffafe; background:rgba(8,145,178,.16); font-weight:700; cursor:pointer; }
.soundsation-share-location:hover { background:rgba(8,145,178,.28); }
.soundsation-share-location:disabled { opacity:.65; cursor:wait; }
.soundsation-presence-privacy { color:#94a3b8; font-size:12px; margin:12px 0; }
.soundsation-online-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:10px; }
.soundsation-online-user { position:relative; display:flex; align-items:flex-start; gap:11px; min-width:0; padding:13px; border:1px solid rgba(148,163,184,.15); border-radius:13px; background:rgba(2,6,23,.38); }
.soundsation-online-avatar { flex:0 0 36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:12px; color:#082f49; font-weight:900; background:linear-gradient(135deg,#67e8f9,#60a5fa); }
.soundsation-online-details { display:flex; flex-direction:column; gap:5px; min-width:0; padding-right:10px; }
.soundsation-online-details strong { color:#f8fafc; overflow-wrap:anywhere; }
.soundsation-online-details span { color:#a5b4c8; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.soundsation-online-dot { position:absolute; right:12px; top:14px; width:8px; height:8px; border-radius:50%; background:#34d399; box-shadow:0 0 10px rgba(52,211,153,.6); }
.soundsation-presence-empty { padding:12px; color:#94a3b8; font-size:13px; }
.soundsation-sl-time { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:14px; padding-top:13px; border-top:1px solid rgba(148,163,184,.14); color:#cbd5e1; font-size:13px; }
.soundsation-sl-time strong { color:#67e8f9; font-size:17px; font-variant-numeric:tabular-nums; }
.soundsation-sl-time span { color:#64748b; font-size:11px; }
.soundsation-day-section { margin-bottom:12px !important; }
.soundsation-day-header-card { width:100%; box-sizing:border-box; cursor:pointer; text-align:left; color:inherit; font:inherit; margin-bottom:0 !important; transition:border-color .2s ease, background .2s ease; }
.soundsation-day-header-card:hover { border-color:rgba(56,189,248,.65); }
.soundsation-day-header-right { display:flex; align-items:center; gap:12px; }
.soundsation-day-chevron { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:9px; color:#67e8f9; background:rgba(56,189,248,.12); font-size:20px; line-height:1; }
.soundsation-day-section .soundsation-cards-row { padding-top:14px; }
.soundsation-day-section.is-collapsed .soundsation-cards-row { display:none; }
.soundsation-day-section:not(.is-collapsed) .soundsation-day-header-card { border-color:rgba(56,189,248,.45); margin-bottom:0 !important; }
@media (max-width:640px) {
    .soundsation-presence-panel { padding:13px; }
    .soundsation-presence-heading { align-items:flex-start; }
    .soundsation-share-location { width:100%; }
    .soundsation-day-header-card { padding:12px 13px; gap:8px; }
    .soundsation-day-title { font-size:13px; }
    .soundsation-day-date { font-size:11px; padding:4px 7px; }
    .soundsation-day-header-right { gap:6px; }
}


/* v6.2.1 — corrigir largura e alinhamento dos cartões dos dias */
.soundsation-main-app .soundsation-day-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
    flex: 0 0 100% !important;
    margin: 0 0 12px !important;
}
.soundsation-main-app .soundsation-day-header-card {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 72px;
    box-sizing: border-box !important;
    justify-content: space-between !important;
}
.soundsation-main-app .soundsation-day-title {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}
.soundsation-main-app .soundsation-day-header-right {
    flex: 0 0 auto;
}
.soundsation-main-app .soundsation-day-section .soundsation-cards-row {
    width: 100% !important;
    box-sizing: border-box !important;
}
@media (min-width: 900px) {
    .soundsation-main-app .soundsation-day-header-card { padding: 16px 22px; }
}
@media (max-width: 640px) {
    .soundsation-main-app .soundsation-day-header-card { min-height: 60px; }
}
