:root {
    --bs-primary: #198754;
    /* Verde */
    --bs-secondary: #6c757d;
    --bs-success: #20c997;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #0dcaf0;
    --bs-pagination-color: #198754;
    --bs-pagination-active-bg: #198754;
    --bs-pagination-active-border-color: #198754;
}
body {
    background-color: #f8f9fa;
    font-size: 1rem;
}
main {
    padding: 5px 20px 30px 20px
}
a {
    color: #198754;
    text-decoration: none;
}
a:hover {
    color: #146c43;
}
.nav-link,
.page-link,
.page-link:hover,
.dropdown-item {
    color: #198754;
}
.active>.page-link,
.page-link.active {
    z-index: 3;
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}


.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}
.margin-top-20 {
    margin-top: 20px;
}

/*
* Dashboard home
*/
.dashboard-item {
    display: inline-grid;
    font-size: 16px;
    padding: 15px;
    margin: 20px;
    line-height: 1;
    text-align: center;

    .dashboard-item-link {
        text-decoration: none;
    }
    .bi {
        display: block;
        font-size: 42px;
    }
}

/*
 * Form
 */
 label {
     color: darkgoldenrod;
 }
 fieldset {
     margin: 30px 0;

 }
 .fieldset-custom {
     border: 1px solid #333 !important;
 }
 .filter-form form {
     background-color: rgba(255, 255, 255, 0.6);
     backdrop-filter: blur(10px);
 }
.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}
.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}
.form-control:focus {
    color: #198754;
    border-color: #198754;
    box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .25);
}

.form-check-input:focus,
.form-select:focus {
    border-color: #198754;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .25);
}
.col-form-label {
    white-space: nowrap;
}

/*
* Otres
*/
.icon-actions-flex {
    display: flex;
    justify-content: space-around;
}
/*
 * Dashboard base
 */

:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
}

body {
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-link {
    color: #a0a3bd;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: end;
}
.logo-text {
    color: white;
    h2 {
        line-height: 8px;
    }
}
.logo-image{
    background-image: url("../images/brote_blanco-elorSa4.png");
    background-position: bottom left;
    background-repeat: no-repeat;
    width: 0;
    height: 60px;
    content: "";
    display: block;
    float: left;
    background-size: 44px auto;
}
.sidebar.collapsed .logo {
    display: none;
}
.notification-badge {
    background: #ff6b6b;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
}

.profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    width: 100%;
    margin-left: var(--sidebar-width);
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.collapsed .logo-text {
    opacity: 0;
}

.collapsed .profile-info {
    opacity: 0;
}

.collapsed .sidebar-link {
    text-align: left;
    padding: 1rem !important;
    margin: 4px 8px;
}

.collapsed .sidebar-link i {
    margin: 0 !important;
}

.profile-info {
    transition: opacity 0.2s ease;
}
