#_dash-debug-menu {
    display: none !important;
}

* {
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #f8f8f8;
}

.sidebar {
    height: 100vh;
    background-color: white;
    color: #333;
    padding: 20px 15px;
    position: fixed;
    width: 250px;
    transition: transform 0.3s ease;
    z-index: 1060;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    overflow-y: auto;
}

.content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
    background-color: #f7f7f7;
    min-height: 100vh;
}

.content.expanded {
    margin-left: 70px;
}

.nav-link {
    color: #666;
    border-radius: 6px;
    margin: 8px 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-weight: 500;
    background-color: transparent;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.nav-link.active {
    background-color: rgba(0, 0, 0, 0.08);
    color: #333333;
    font-weight: 600;
}

.dbc.navlink,
.nav-pills .nav-link {
    background-color: transparent !important;
}

.nav-pills .nav-link.active {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: #333333 !important;
}

.toggle-btn {
    position: absolute;
    right: -12px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    border: none;
    color: #673ab7;
    font-size: 14px;
    z-index: 1010;
}

.toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(103, 58, 183, 0.25);
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.card-body {
    padding: 20px 24px;
}

dcc-graph {
    margin: 10px 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f7f7f7;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: white;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-button {
    background: linear-gradient(135deg, #9333EA 0%, #3B82F6 100%);
    border-radius: 8px;
    width: 100%;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.2);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 58, 183, 0.3);
}

.user-info {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#time-series-graph,
#transaction-type-pie {
    padding: 5px;
}

.danger-zone {
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    background-color: #ffebee;
    padding: 15px;
    margin-top: 30px;
}

.danger-zone h5 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.danger-button {
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.danger-button:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    max-width: 800px;
    margin: 0 auto;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
    word-break: break-word;
}

.user-message {
    background-color: #673ab7;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.bot-message {
    background-color: #f0f0f0;
    color: #333;
    align-self: flex-start;
}

.chat-input-container {
    display: flex;
    margin-top: auto;
}

.chat-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-submit {
    background-color: #673ab7;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(103, 58, 183, 0.3);
}

.chat-submit:hover {
    background-color: #5e35b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(103, 58, 183, 0.4);
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.bot-typing {
    font-style: italic;
    color: #666;
    padding: 10px 15px;
    margin-bottom: 5px;
    font-size: 12px;
    text-align: left;
    align-self: flex-start;
}

.chat-welcome {
    text-align: center;
    padding: 20px 0;
    color: #673ab7;
    font-size: 16px;
    font-weight: 500;
}

.update-button:hover {
    background-color: #5e35b1 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(103, 58, 183, 0.3);
}

#password-update-message {
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

/* Estilos responsive */
@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
        left: 0;
        top: 0;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 20px 15px;
        padding-top: 70px;
    }

    .sidebar-overlay.active {
        display: block !important;
    }

    .nav-item {
        padding: 12px 15px;
        margin: 5px 0;
    }
}

@media (min-width: 768px) {
    .toggle-sidebar-button,
    .close-sidebar-button,
    .sidebar-overlay {
        display: none !important;
    }

    .sidebar {
        transform: translateX(0) !important;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px;
    }

    .login-logo img {
        max-height: 120px;
    }
}

.dash-dropdown {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.dash-dropdown:hover {
    box-shadow: 0 3px 8px rgba(103, 58, 183, 0.2);
}

.dash-dropdown .Select-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: 38px;
    background-color: white;
}

.dash-dropdown .Select-placeholder,
.dash-dropdown .Select-value {
    line-height: 38px;
    padding-left: 15px;
    color: #333;
}

.dash-dropdown .Select-menu-outer {
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
    margin-top: -1px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
}

.dash-dropdown .Select-option {
    padding: 10px 15px;
    color: #333;
    transition: background-color 0.2s;
}

.dash-dropdown .Select-option.is-focused,
.dash-dropdown .Select-option:hover {
    background-color: #f2e6ff;
    color: #673ab7;
}

.dash-dropdown .Select-option.is-selected {
    background-color: #e6d8ff;
    color: #673ab7;
    font-weight: 500;
}

.dash-dropdown .Select-arrow {
    border-color: #673ab7 transparent transparent;
}

.dash-dropdown.is-open .Select-arrow {
    border-color: transparent transparent #673ab7;
}

/* Estilos para el título de la página */
.dashboard-title {
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.transaction-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.transaction-card {
    transition: all 0.2s ease !important;
}

@media (max-width: 768px) {
    .transaction-card {
        margin-bottom: 8px !important;
    }
}