* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #f5f5f5;
}

.navbar {
    display: flex;
    align-items: center;
    background-color: #2c3e50;
    padding: 10px 15px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-button {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    height: 40px;
    border-radius: 4px;
    min-width: 80px;
}

.menu-button:hover {
    background-color: #3d566e;
}

.main-button {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    height: 40px;
    border-radius: 4px;
    min-width: 100px;
}

.main-button:hover {
    background-color: #3d566e;
}

.main-button-group {
    position: relative;
    display: inline-block;
    height: 40px;
}

.sub-buttons {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 140px;
    z-index: 1001;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

.main-button-group:hover .sub-buttons {
    display: block;
}

.sub-button-group {
    position: relative;
}

.sub-main-button {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background-color: #3d566e;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.sub-main-button:hover {
    background-color: #4a6a86;
}

.sub-sub-buttons {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #4a6a86;
    min-width: 120px;
    z-index: 1002;
    border-radius: 0 4px 4px 0;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.16);
}

.sub-button-group:hover .sub-sub-buttons {
    display: block;
}

.sub-sub-buttons button {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background-color: #4a6a86;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}

.sub-sub-buttons button:hover {
    background-color: #5a7d9a;
}

#side-menu {
    position: fixed;
    top: 60px;
    left: -300px;
    width: 300px;
    height: calc(100vh - 60px);
    background-color: #2c3e50;
    transition: left 0.3s ease;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

#side-menu.open {
    left: 0;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 120px;
    margin-bottom: 10px;
}

.logo h2 {
    color: white;
    font-size: 20px;
    margin: 0;
    padding: 0;
}

.team-logo {
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Esto lo empuja hacia abajo */
    border-top: 1px solid #34495e;
}

.team-logo img {
    max-width: 180px;
    max-height: 180px;
}

#side-menu {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
}

#search-box {
    position: relative;
    margin-bottom: 25px;
}

#search-input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border-radius: 20px;
    border: none;
    background-color: #34495e;
    color: white;
    font-size: 14px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23bdc3c7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3498db;
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background-color: #2c3e50;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 1px solid #34495e;
}

.search-results.show {
    display: block;
}

.search-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #34495e;
}

.search-item:hover {
    background-color: #3d566e;
}

.search-item-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
    color: #ecf0f1;
}

.search-item-path {
    font-size: 12px;
    color: #bdc3c7;
    font-style: italic;
}

.highlight {
    background-color: #f1c40f;
    color: #2c3e50;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

.menu-divider {
    border: none;
    height: 1px;
    background-color: #34495e;
    margin: 15px 0;
}

.menu-category {
    margin-bottom: 5px;
}

.menu-category-btn, .submenu-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background-color: #34495e;
    color: white;
    border: none;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.menu-category-btn:hover, .submenu-btn:hover {
    background-color: #3d566e;
}

.arrow, .sub-arrow {
    transition: transform 0.2s ease;
    margin-left: 10px;
    font-size: 12px;
}

.arrow.rotated, .sub-arrow.rotated {
    transform: rotate(90deg);
}

.menu-subcategory {
    display: none;
    padding-left: 10px;
}

.menu-subcategory.show {
    display: block;
}

.submenu-items {
    display: none;
    padding-left: 15px;
}

.submenu-items.show {
    display: block;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: #3a5169;
    color: #ecf0f1;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    margin-bottom: 5px;
    border-radius: 3px;
}

.menu-item:hover {
    background-color: #415b76;
}

#main-content {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    transition: left 0.3s ease;
    z-index: 800;
    padding: 20px;
    background-color: #ecf0f1;
}

#main-content.menu-open {
    left: 300px;
    width: calc(100% - 300px);
}

#dashboard {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

@media (max-width: 768px) {
    #main-content.menu-open {
        left: 250px;
        width: calc(100% - 250px);
    }
    
    #side-menu {
        width: 250px;
    }
    
    .main-button {
        padding: 8px 10px;
        min-width: 80px;
        font-size: 12px;
    }
}

