/* Google Fonts - Inter is recommended for this clean look */

.tcc-sidebar-menu-wrapper {
    position: relative;
    display: inline-block;
}

/* Hamburger Toggle Button */
.tcc-sidebar-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    /* Default, overridden by Elementor */
}

/* Overlay */
.tcc-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.tcc-sidebar-menu-wrapper.is-open .tcc-sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Container */
.tcc-sidebar-container {
    position: fixed;
    top: 0;
    left: -400px;
    /* Hidden by default */
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.tcc-sidebar-menu-wrapper.is-open .tcc-sidebar-container {
    transform: translateX(400px);
}

/* Header */
.tcc-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.tcc-sidebar-logo {
    display: flex;
    align-items: center;
}

.tcc-sidebar-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 150px;
    max-height: 45px;
    object-fit: contain;
}

.tcc-sidebar-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content & Menu */
.tcc-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

/* Custom Scrollbar */
.tcc-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.tcc-sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.tcc-sidebar-content::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

.tcc-sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tcc-sidebar-menu-list li {
    position: relative;
    border-bottom: 1px solid #f9f9f9;
}

.tcc-sidebar-menu-list li:last-child {
    border-bottom: none;
}

.tcc-sidebar-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    transition: color 0.2s ease;
}

.tcc-sidebar-menu-list a:hover {
    color: #8c1515;
    /* Optional hover, usually overridden */
}

/* Sub-menus */
.tcc-sidebar-menu-list .sub-menu {
    list-style: none;
    padding-left: 15px;
    margin: 0;
    display: none;
    /* Hidden by default, toggled via JS */
    background: #fafafa;
    border-left: 2px solid #eee;
}

.tcc-sidebar-menu-list .sub-menu a {
    padding: 12px 0 12px 10px;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
}

.tcc-sidebar-menu-list .sub-menu li:last-child a {
    border-bottom: none;
}

/* Accordion Icons */
.tcc-submenu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 0 5px 15px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    font-size: 18px;
    font-weight: 300;
    margin-left: auto;
}

/* Footer & Action Button */
.tcc-sidebar-footer {
    padding: 25px 30px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.tcc-sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #8c1515;
    /* Dark red based on user image */
    color: #ffffff;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(140, 21, 21, 0.2);
}

.tcc-sidebar-action-btn:hover {
    background-color: #6b0f0f;
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(140, 21, 21, 0.3);
}

.tcc-btn-icon {
    margin-right: 10px;
}

/* Responsive constraints */
@media (max-width: 480px) {
    .tcc-sidebar-container {
        left: -100%;
        max-width: 100%;
    }

    .tcc-sidebar-menu-wrapper.is-open .tcc-sidebar-container {
        transform: translateX(100%);
    }
}