* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #000000;
    color: #e5e7eb;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #000000;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 18px;
    transition: 0.3s ease;
}

.sidebar-logo {
    font-size: 24px;
    margin-bottom: 32px;
}

.sidebar-logo span {
    color: #38bdf8;
}

.sidebar-logo strong {
    color: #ffffff;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #000000;
}

.sidebar-menu a {
    text-decoration: none;
    color: #cbd5e1;
    padding: 12px 14px;
    border-radius: 10px;
    transition: 0.2s;
}

.sidebar-menu a:hover {
    background: #000000;
    color: #ffffff;
}


.sidebar {
    position: relative;
}

.sidebar-collapse-btn {
    position: absolute;
    top: 18px;
    right: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #020617;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    z-index: 200;
}

.sidebar.collapsed {
    width: 72px;
    padding-left: 12px;
    padding-right: 12px;
}

.sidebar.collapsed .sidebar-logo strong,
.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .sidebar-menu a {
    font-size: 0;
}

.sidebar.collapsed .sidebar-menu a::first-letter {
    font-size: 18px;
}

.sidebar.collapsed .sidebar-collapse-btn {
    transform: rotate(180deg);
}

.sidebar.collapsed a span {
    display: none;
}

.sidebar.collapsed a i {
    font-size: 20px;
    margin: 0;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-menu a i {
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 16px;
}

.sidebar.collapsed .sidebar-menu a span {
    display: none;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu a i {
    font-size: 20px;
    margin: 0;
}
.app-main {
    flex: 1;
    min-width: 0;
}

.navbar {
    height: 70px;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.menu-toggle {
    display: none;
    background: #1e293b;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
}

.navbar-title {
    font-size: 18px;
    font-weight: bold;
}

.navbar-user {
    color: #94a3b8;
    font-size: 14px;
}

.app-content {
    padding: 28px;
}

.dashboard-header {
    margin-bottom: 24px;
}

.dashboard-header h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.dashboard-header p {
    color: #94a3b8;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px;
    border-radius: 18px;
}

.card span {
    display: block;
    color: #94a3b8;
    margin-bottom: 12px;
}

.card strong {
    font-size: 32px;
    color: #38bdf8;
}

.panel {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    border-radius: 18px;
}

.panel h2 {
    margin-bottom: 10px;
}

.panel p {
    color: #94a3b8;
    line-height: 1.6;
}

.messages {
    margin-bottom: 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.message.success {
    background: #064e3b;
}

.message.error {
    background: #7f1d1d;
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar.collapsed {
        width: 260px;
    }

    .sidebar.collapsed .sidebar-menu a span,
    .sidebar.collapsed .sidebar-logo span,
    .sidebar.collapsed .sidebar-logo strong {
        display: inline;
        font-size: inherit;
    }

    .sidebar.collapsed .sidebar-menu a {
        justify-content: flex-start;
    }

    .sidebar-collapse-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 900;
    }

    .mobile-overlay.active {
        display: block;
    }
}
@media (max-width: 600px) {
    .navbar {
        padding: 0 16px;
    }

    .app-content {
        padding: 18px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .navbar-user {
        display: none;
    }
}
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 35%),
        #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 34px;
    border-radius: 22px;
}

.login-logo {
    font-size: 26px;
    margin-bottom: 24px;
}

.login-logo span {
    color: #38bdf8;
}

.login-logo strong {
    color: #ffffff;
}

.login-card h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.login-card p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    padding: 13px 14px;
    border-radius: 10px;
    outline: none;
}

.form-group input:focus {
    border-color: #38bdf8;
}

.btn-primary {
    width: 100%;
    border: none;
    background: #38bdf8;
    color: #020617;
    padding: 13px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
}

.btn-primary:hover {
    background: #0ea5e9;
}

.login-error {
    background: #7f1d1d;
    color: #ffffff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.page-header p {
    color: #94a3b8;
}

.btn-page,
.btn-secondary {
    text-decoration: none;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.btn-page {
    background: #38bdf8;
    color: #020617;
}

.btn-secondary {
    background: #1e293b;
    color: #ffffff;
}

.table-card,
.form-card {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    color: #94a3b8;
    font-size: 14px;
}

td {
    color: #e5e7eb;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge.success {
    background: #064e3b;
    color: #a7f3d0;
}

.badge.danger {
    background: #7f1d1d;
    color: #fecaca;
}

.table-link {
    color: #38bdf8;
    text-decoration: none;
    margin-right: 10px;
    font-size: 14px;
}

.table-link.danger {
    color: #f87171;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.form-group select,
.form-group textarea,
.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group input[type="url"] {
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 10px;
    outline: none;
}

.form-group input[type="checkbox"] {
    width: auto;
}

.field-error {
    display: block;
    color: #f87171;
    margin-top: 6px;
}

@media (max-width: 700px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

.mini-tag {
    display: inline-block;
    background: #1e293b;
    color: #cbd5e1;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    margin: 2px;
}
.badge.warning {
    background: #78350f;
    color: #fde68a;
}

.form-errors {
    background: #7f1d1d;
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.4);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.form-errors p {
    margin: 0;
}
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-cards .card {
    background: #0f172a;
    padding: 20px;
    border-radius: 18px;
}

.dashboard-cards .card h3 {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
}

.dashboard-cards .card span {
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.summary-item,
.chart-card {
    background: transparent;
    border: 3px solid rgba(245, 243, 243, 0.08);
    border-radius: 18px;
    padding: 20px;
}

.summary-item span {
    display: block;
    color: #94a3b8;
    margin-bottom: 8px;
}

.summary-item strong {
    font-size: 30px;
    color: #38bdf8;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.chart-card h2 {
    margin-bottom: 16px;
}

.pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
}

.pagination a {
    background: #1e293b;
    color: #ffffff;
    padding: 9px 13px;
    border-radius: 8px;
    text-decoration: none;
}

.pagination span {
    color: #94a3b8;
}

@media (max-width: 900px) {
    .dashboard-summary,
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-bar a {
    text-decoration: none;
    background: #020617;
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
}

.filter-bar a.active,
.filter-bar a:hover {
    background: #38bdf8;
    color: #020617;
    font-weight: bold;
}

.filter-date-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.filter-date-form label {
    color: #cbd5e1;
}

.filter-date-form input {
    background: #020617;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.10);
    padding: 9px 12px;
    border-radius: 8px;
}

.filter-date-form button {
    background: #38bdf8;
    color: #020617;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.agenda-filter-form {
    display: flex;
    align-items: end;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    color: #94a3b8;
    font-size: 14px;
}

.filter-group input {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.10);
    padding: 10px 14px;
    border-radius: 10px;
}

.agenda-container {
    background: transparent;
    border-radius: 18px;
    overflow-x: auto;
    border: 2px solid rgba(255,255,255,0.08);
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.agenda-table thead th {
    background: transparent;
    color: #ffffff;
    padding: 14px;
    text-align: center;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.agenda-table tbody td {
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: #cbd5e1;
}

.hora-column {
    width: 120px;
    position: sticky;
    left: 0;
    background: trans;
    border-bottom: 2px solid rgba(255,255,255,0.05);
    
    z-index: 10;
}
.menu-agenda-visual {
    background: linear-gradient(
        135deg,
        #2563eb,
        #38bdf8
    );
    color: white !important;
    border-radius: 12px;
    font-weight: 600;
    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.25);
}

.menu-agenda-visual:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.35);
}

.menu-agenda-visual i {
    color: white;
}
.agenda-slot {
    height: 46x;
    min-width: 130px;
    background: rgba(255,255,255,0.02);
    transition: 0.2s;
}

.agenda-slot:hover {
    background: rgba(56, 189, 248, 0.08);
}

.hora-column {
    font-weight: 600;
    color: #38bdf8 !important;
}

.agenda-event {
    border-radius: 12px;
    padding: 10px;
    text-align: left;
    font-size: 13px;
}

.agenda-event strong {
    display: block;
    margin-bottom: 4px;
}

.agenda-event span {
    color: rgba(255,255,255,0.8);
}

.agenda-event.pendente {
    background: #78350f;
    color: #fde68a;
}

.agenda-event.confirmado {
    background: #1d4ed8;
    color: #dbeafe;
}

.agenda-event.concluido {
    background: #064e3b;
    color: #a7f3d0;
}

.agenda-event.cancelado_cliente,
.agenda-event.cancelado_empresa,
.agenda-event.rejeitado,
.agenda-event.nao_compareceu {
    background: #7f1d1d;
    color: #fecaca;
}

.agenda-free {
    color: #475569;
    font-size: 13px;
}
.agenda-break {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    border: 1px dashed rgba(203, 213, 225, 0.35);
    border-radius: 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.agenda-blocked {
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
    border: 1px dashed rgba(248, 113, 113, 0.45);
    border-radius: 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}
.agenda-event-link {
    text-decoration: none;
    display: block;
}

.agenda-event-link:hover .agenda-event {
    transform: scale(1.02);
    filter: brightness(1.12);
}

.agenda-event {
    transition: 0.2s ease;
    cursor: pointer;
}
.agenda-event small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
}
.agenda-free-link {
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 10px;
}

.agenda-free-link:hover {
    background: rgba(56, 189, 248, 0.10);
    color: #38bdf8;
}

.filter-group input,
.filter-group select {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.10);
    padding: 10px 14px;
    border-radius: 10px;
}
.agenda-event,
.agenda-break,
.agenda-blocked {
    padding: 7px;
    font-size: 12px;
}
.agenda-event-main {
    color: inherit;
    text-decoration: none;
    display: block;
}

.agenda-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.agenda-action {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    padding: 5px 6px;
    border-radius: 8px;
    font-weight: bold;
}

.agenda-action.confirm {
    background: #064e3b;
    color: #a7f3d0;
}

.agenda-action.reject {
    background: #7f1d1d;
    color: #fecaca;
}

.agenda-visual-bg {
    min-height: calc(100vh - 70px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 28px;
    margin: -28px;
}

.chart-card {
    min-height: 260px;
}

.chart-card canvas {
    max-height: 210px;
}



