/* Cards de estatísticas */
.card-flush {
    position: relative;
    overflow: hidden;
}

.card-flush::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.fs-2hx {
    font-size: 2.5rem !important;
}

.ls-n2 {
    letter-spacing: -2px;
}

/* Hover effects */
.card.hoverable {
    transition: transform 0.3s ease;
}

.card.hoverable:hover {
    transform: translateY(-5px);
}

/* Card footer links */
.card-footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Estatísticas */
.flex-stack {
    justify-content: space-between !important;
}

/* Tabelas */
.table.table-row-dashed tr {
    border-bottom-style: dashed;
    border-bottom-width: 1px;
    border-bottom-color: #eff2f5;
}

.table th {
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Paper Dashboard Style */
.card {
    border-radius: 4px;
    background-color: #FFFFFF;
    margin-bottom: 30px;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.card-stats {
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 300ms ease-out;
}

.card-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.card-stats .icon-big {
    font-size: 3em;
    min-height: 64px;
    line-height: 64px;
}

.card-stats .icon-big i {
    line-height: 59px;
}

.card-stats .numbers {
    text-align: right;
}

.card-stats .numbers p {
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.card-stats .numbers h3 {
    font-size: 30px;
    margin: 0;
    padding: 0;
    font-weight: 300;
}

.text-info { color: #1DC7EA !important; }
.text-success { color: #87CB16 !important; }
.text-warning { color: #FF9500 !important; }
.text-danger { color: #FF4A55 !important; }

.bg-info { background-color: #1DC7EA !important; }
.bg-success { background-color: #87CB16 !important; }
.bg-warning { background-color: #FF9500 !important; }
.bg-danger { background-color: #FF4A55 !important; }

/* Charts */
.chart-container {
    position: relative;
    min-height: 300px;
    padding: 15px;
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 20px 0;
    position: relative;
}

.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    left: 50%;
    margin-left: -1.5px;
}

/* Sidebar */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #343a40;
    color: #fff;
    transition: all 0.3s;
}

.sidebar .sidebar-header {
    padding: 20px;
    background: #2c3136;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar ul.components {
    padding: 20px 0;
}

.sidebar ul li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    color: #fff;
    text-decoration: none;
}

.sidebar ul li a:hover {
    background: #2c3136;
}

.sidebar ul ul a {
    font-size: 0.9em !important;
    padding-left: 40px !important;
    background: #2c3136;
}

/* Content */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    background: #f8f9fa;
}

/* Navbar */
.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

.navbar-right {
    margin-left: auto;
}

/* User Dropdown */
.symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.symbol-35px {
    width: 35px;
    height: 35px;
}

.symbol-label {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification Badge */
.nav-link .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.4em;
}

/* Dropdown Menu */
.dropdown-menu {
    box-shadow: 0 0 50px 0 rgba(82,63,105,.15);
    border: 0;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
}

.dropdown-item:hover {
    background-color: #f4f6fa;
}

/* Logout Button */
.dropdown-menu .btn-danger {
    background-color: #FF4A55;
    border-color: #FF4A55;
    transition: all 0.3s ease;
}

.dropdown-menu .btn-danger:hover {
    background-color: #ff3540;
    border-color: #ff3540;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    padding: 24px 0;
}

.footer .copyright {
    color: #777;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

/* Sidebar Toggle Button */
#sidebarCollapse {
    padding: 10px;
    border: none;
    background: #343a40;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

#sidebarCollapse:hover {
    background: #2c3136;
}

#sidebarCollapse:focus {
    outline: none;
    box-shadow: none;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 999;
        transition: all 0.3s ease-in-out;
    }

    .sidebar.active {
        margin-left: 0;
        box-shadow: 3px 0 10px rgba(0,0,0,0.2);
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .overlay.active {
        display: block;
        opacity: 1;
    }

    #content {
        margin-left: 0;
        width: 100%;
    }

    /* Ajusta o botão de toggle no navbar */
    .navbar .btn-primary {
        padding: 0.5rem;
        margin-right: 1rem;
    }

    #sidebarCollapse {
        margin-right: 15px;
        background: #007bff;
    }

    #sidebarCollapse:hover {
        background: #0056b3;
    }

    .navbar .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    #sidebarCollapse i {
        font-size: 1.25rem;
    }

    /* Oculta o botão de toggle da navbar quando o menu estiver aberto */
    #sidebar.active ~ #content #sidebarCollapse {
        display: none;
    }

    /* Mantém o botão de fechar (X) dentro do sidebar sempre visível quando o menu estiver aberto */
    #sidebar.active .sidebar-header #sidebarCollapse {
        display: flex;
        background: transparent;
        margin: 0;
    }

    #sidebar.active .sidebar-header #sidebarCollapse:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Cards e Tabelas Responsivas */
.card {
    margin-bottom: 1rem;
}

.table-responsive {
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }

    .table td, .table th {
        padding: 0.5rem;
    }
}

/* Formulários Responsivos */
@media (max-width: 576px) {
    .form-group {
        margin-bottom: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Status Badges */
.badge {
    padding: 0.5em 1em;
}

.bg-pendente { background-color: #ffc107; }
.bg-parcial { background-color: #17a2b8; }
.bg-pago { background-color: #28a745; }
.bg-atrasado { background-color: #dc3545; } 