
@charset "UTF-8";

/* === VARIÁVEIS DE FONTES === */
:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === VARIÁVEIS DE TEMA === */
:root {
    --color-bg: #f4f6f9;
    --color-text: #333;
    --color-card-bg: #fff;
    --color-input-bg: #fff;
    --color-input-text: #333;
    --color-border: #ddd;
    --color-border-focus: #007bff;
    --color-focus-shadow: rgba(0, 123, 255, 0.3);
    --color-muted: #6c757d;
    --color-carousel-bg: #fff;
    --color-carousel-btn-bg: #fff;
    --color-carousel-btn-border: #ccc;
    --color-carousel-btn-shadow: rgba(0,0,0,0.1);
    --color-chart-bg: #eee;
    --color-highlight: #7e6fff;
}

body.dark-mode {
    --color-bg: #1a1c24;
    --color-text: #f4f4f5;
    --color-card-bg: #252836;
    --color-input-bg: #2f3342;
    --color-input-text: #f4f4f5;
    --color-border: #444;
    --color-border-focus: #7e6fff;
    --color-focus-shadow: rgba(126, 111, 255, 0.5);
    --color-muted: #b0b3c1;
    --color-carousel-bg: #2f3342;
    --color-carousel-btn-bg: #3a3f50;
    --color-carousel-btn-border: #555;
    --color-carousel-btn-shadow: rgba(0,0,0,0.3);
    --color-chart-bg: #1a1c24;
    --color-highlight: #7e6fff;
}

/* === BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === CONTAINERS === */
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 30px 40px;
    margin: 0;
    background: transparent;
}

.card {
    padding: 20px;
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
    color: var(--color-text);
}

/* === TEXTOS === */
h1, h2, h3, h4 {
    color: var(--color-text);
}

.text-muted {
    color: var(--color-muted);
}

label {
    color: var(--color-text);
}

.chart-label {
    color: var(--color-muted);
}

/* === INPUTS / FORMS === */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background-color: var(--color-input-bg);
    color: var(--color-input-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s ease;
}

    input:focus, select:focus, textarea:focus {
        border-color: var(--color-border-focus);
        outline: none;
        box-shadow: 0 0 4px var(--color-focus-shadow);
    }

    input::placeholder, textarea::placeholder {
        color: #aaa;
    }

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: var(--color-input-bg) !important;
    color: var(--color-input-text) !important;
}

/* === BOTÕES === */
.button {
    display: inline-block;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.button-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

    .button-primary:hover {
        background: linear-gradient(135deg, #0056b3, #003f7f);
        transform: scale(1.05);
    }

.button-secondary {
    background: #6c757d;
    color: #fff;
}

    .button-secondary:hover {
        background: #545b62;
        transform: scale(1.05);
    }

/* === TABELAS === */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
}

    .custom-table th, .custom-table td {
        padding: 12px 15px;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
        color: var(--color-text);
    }

    .custom-table th {
        background: var(--color-bg);
        color: var(--color-text);
        text-transform: uppercase;
        font-size: 14px;
    }

    .custom-table tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .button {
        width: 100%;
        padding: 14px;
    }

    table th, table td {
        padding: 10px;
    }
}

/* === CARROSSEL === */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-carousel-bg);
    box-shadow: 0 6px 18px var(--color-carousel-btn-shadow);
    width: 100%;
    height: 260px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 1rem;
    text-align: center;
}

    .carousel-slide img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
    }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-carousel-btn-bg);
    border: 1px solid var(--color-carousel-btn-border);
    border-radius: 50%;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 6px var(--color-carousel-btn-shadow);
    z-index: 1;
}

    .carousel-btn.left {
        left: 10px;
    }

    .carousel-btn.right {
        right: 10px;
    }

/* === GRÁFICO CIRCULAR === */
.circular-chart {
    display: block;
    margin: auto;
    max-width: 100%;
}

.circle-bg {
    fill: none;
    stroke: var(--color-chart-bg);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: var(--color-highlight);
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 2s ease-out forwards;
}

.percentage {
    fill: var(--color-muted);
    font-size: 5px;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* === TOGGLE DE TEMA === */
.theme-toggle i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

body.dark-mode .theme-toggle i {
    color: #ffcc00;
}

body:not(.dark-mode) .theme-toggle i {
    color: #333;
}

/* Forçar cor dos cards no tema claro */
body:not(.dark-mode) .card {
    background-color: var(--color-card-bg) !important;
    color: var(--color-text);
}

/* Forçar cor dos labels no tema claro */
body:not(.dark-mode) label {
    color: var(--color-text) !important;
}

body:not(.dark-mode) h1,
body:not(.dark-mode) h2,
body:not(.dark-mode) h3,
body:not(.dark-mode) h4 {
    color: var(--color-text) !important;
}

.button-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s ease;
}

    .button-outline:hover {
        background-color: var(--color-border);
        color: var(--color-input-text);
    }

/* NAV MENU - Estilo EndoFlow */
.nav-menu .nav-link {
    display: flex;
    align-items: center; /* Centraliza ícone e texto verticalmente */
    gap: 12px; /* Espaço entre ícone e texto */
    color: #fff;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    line-height: 1.2;
}

    .nav-menu .nav-link i {
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }


.nav-menu {
    background: linear-gradient(180deg, #0e0e2c, #3a0ca3, #7209b7);
    color: #f4f4f5;
    width: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

    .nav-menu nav {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

.nav-item {
    margin-bottom: 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .nav-link i {
        margin-right: 12px;
        font-size: 1.2rem;
    }

.logout-link {
    margin-top: auto;
    color: #ff6b6b;
}

    .logout-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

@media (max-width: 768px) {
    .nav-menu {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 0 10px;
        background: #1a1a2e;
    }

    .nav-item {
        margin-bottom: 0;
        margin-right: 12px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}

.modal-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-endoflow {
    background-color: #7e6fff;
    border-color: #7e6fff;
    color: #fff;
}

    .btn-endoflow:hover {
        background-color: #675de0;
        border-color: #675de0;
        color: #fff;
    }

.dropdown-menu {
    background-color: var(--color-card-bg);
    color: var(--color-text);
    z-index: 1050;
}

.form-select {
    cursor: pointer;
    user-select: none;
}

body.dark-mode .form-select,
body.dark-mode .dropdown-menu {
    background-color: var(--color-input-bg) !important;
    color: var(--color-input-text) !important;
    border-color: var(--color-border) !important;
}

    body.dark-mode .dropdown-menu .form-check-label {
        color: var(--color-input-text);
    }

/* Adicione no seu CSS global ou no site.css */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.btn-outline-endoflow {
    color: #7e6fff;
    border-color: #7e6fff;
}

    .btn-outline-endoflow:hover {
        background-color: #7e6fff;
        color: white;
    }

.storage-bar-container {
    background-color: #2c2c2c;
    border-radius: 10px;
    overflow: hidden;
}

.storage-bar-used {
    background: linear-gradient(90deg, #7e6fff, #5e4bff);
    height: 100%;
    transition: width 0.5s ease;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #0b071a;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.nav-logo {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .nav-logo img {
        max-width: 80%;
        height: auto;
    }

.nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: 1rem;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

    .nav-link i {
        font-size: 1.2rem;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: #7e6fff;
        color: white;
    }

.logout-container {
    margin-top: auto;
    padding-bottom: 1rem;
}

.logout-link {
    color: #ff4d4d;
}

    .logout-link:hover {
        background-color: rgba(255, 77, 77, 0.1);
    }
