/* Meu GoTV - Dashboard */
#dashboard {
    width: 100%;
    text-align: left;
}

body:has(#dashboard[style*="block"]) {
    align-items: stretch;
}

body:has(#dashboard[style*="block"]) .login {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 24px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #091426;
}

.gotv-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.gotv-sidebar, .gotv-card {
    background: #101f35;
    border: 1px solid #24476d;
    border-radius: 16px;
    padding: 22px;
}

.gotv-sidebar nav {
    display: grid;
    gap: 10px;
}

.gotv-sidebar a {
    display: block;
    padding: 13px;
    color: #a9c0db;
    text-decoration: none;
    border-radius: 9px;
}

.gotv-sidebar a:hover,
.gotv-sidebar a.active {
    background: #173e69;
    color: white;
}

.gotv-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gotv-card h3 {
    color: #ffffff;
    margin-top: 0;
}

.gotv-card p {
    margin: 8px 0;
}

@media (max-width: 750px) {
    .gotv-layout {
        grid-template-columns: 1fr;
    }
    .gotv-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gotv-cards {
        grid-template-columns: 1fr;
    }
}

/* Ocultar o cabeçalho do login apenas no Dashboard */
body:has(#dashboard[style*="block"]) .login > .logo,
body:has(#dashboard[style*="block"]) .login > h2,
body:has(#dashboard[style*="block"]) .login > p:not(#loginMessage),
body:has(#dashboard[style*="block"]) .login > .footer {
    display: none;
}

/* Logomarca oficial no menu lateral */
.gotv-brand {
    margin: 0 0 25px;
    text-align: center;
}

.gotv-brand img {
    display: block;
    width: 100%;
    max-width: 170px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
}
