:root {
    /*--ubuntu-orange:          #2D5A5C;
            --ubuntu-light-orange:    #3A8A8E;
            --ubuntu-dark-aubergine:  #5FC2C7;
            --ubuntu-mid-aubergine:   #2DCCCD;
            --ubuntu-light-aubergine: #B1E4E6;
            --ubuntu-warm-grey:       #E6F4F5;
            --verde-azulado-oscuro:   #2D5A5C;
            --verde-azulado-medio:    #3A8A8E;
            --verde-azulado-claro:    #5FC2C7;
            --verde-azulado-saturado: #2DCCCD;
            --verde-azulado-suave:    #B1E4E6;
            --gris-azulado-claro:     #E6F4F5;
            --primary-dark: #2D5A5C;
            --primary: #3A8A8E;
            --primary-light: #5FC2C7;
            --accent: #2DCCCD;
            --background-light: #B1E4E6;
            --background-neutral: #E6F4F5;*/



    --ubuntu-orange: #3a758e;
    --ubuntu-light-orange: #3a618e;
    --ubuntu-dark-aubergine: #5f8ac7;
    --ubuntu-mid-aubergine: #2da1cd;
    --ubuntu-light-aubergine: #b1d7e6;
    --ubuntu-warm-grey: #e6edf5;
    --verde-azulado-oscuro: #2D5A5C;
    --verde-azulado-medio: #3A8A8E;
    --verde-azulado-claro: #5FC2C7;
    --verde-azulado-saturado: #2DCCCD;
    --verde-azulado-suave: #B1E4E6;
    --gris-azulado-claro: #E6F4F5;
    --primary-dark: #2D5A5C;
    --primary: #3a758e;
    --primary-light: #5FC2C7;
    --accent: #2DCCCD;
    --background-light: #B1E4E6;
    --background-neutral: #E6F4F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: linear-gradient(135deg, var(--ubuntu-dark-aubergine) 0%, var(--ubuntu-mid-aubergine) 100%);
    color: #333;
}

.d-hidden{
    display: none;
}

/* ==================== MENÚ SUPERIOR ESTILO GNOME ==================== */
.gnome-topbar {
    background: linear-gradient(to bottom, #3C3B3B 0%, #2C2C2C 100%);
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: var(--ubuntu-warm-grey);
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-item {
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.topbar-item.active {
    background: rgb(79 145 201);
    color: #ffffff;
}

.topbar-time {
    font-weight: 500;
}

/* ==================== CONTENEDOR PRINCIPAL ==================== */
.main-container {
    display: flex;
    height: calc(100vh - 24px);
    margin-top: 24px;
}

/* ==================== BARRA LATERAL ==================== */
.sidebar {
    width: 200px;
    background: var(--ubuntu-orange);
    /*rgb(42 98 101);/*rgba(44, 0, 30, 0.95);*/
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    overflow-y: auto;
    transition: all 0.3s;
}

/*.sidebar:hover{
            width: 200px;
        }*/
.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    color: var(--ubuntu-light-aubergine);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.sidebar-item {
    padding: 12px 20px;
    color: var(--ubuntu-warm-grey);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    position: relative;
}

.sidebar-item:hover {
    background: rgba(233, 84, 32, 0.1);
    color: white;
}

/*.sidebar-item:hover>.sidebar-item-desc{
            display: block;
            position:;
        }*/

.sidebar-item.active {
    background: linear-gradient(to right, rgba(233, 84, 32, 0.2), transparent);
    color: #000000;
    /*var(--ubuntu-orange);*/
    border-right: 3px solid var(--ubuntu-orange);
}

.sidebar-item i {
    width: 24px;
    text-align: center;
    font-size: 16px;
}

.sidebar-item-count {
    background: var(--ubuntu-orange);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/*.sidebar-item-desc{
            display: none;
        }*/
/* ==================== ÁREA DE CONTENIDO ==================== */
.content-area {
    flex: 1;
    background: #F6F6F6;
    overflow-y: auto;
    padding: 20px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    padding-bottom: 2px;
    border-bottom: 1px solid #ddd;
}

.content-title {
    color: var(--ubuntu-dark-aubergine);
    font-size: 24px;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-title i {
    color: var(--ubuntu-orange);
}

.content-actions {
    display: flex;
    gap: 10px;
}

/* ==================== PANELES DE CONTENIDO ==================== */
.content-panel {
    display: none;
    animation: fadeIn 0.3s;
}

.content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== TARJETAS ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e1e1;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ubuntu-orange), var(--ubuntu-light-orange));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.card-title {
    font-size: 18px;
    color: var(--ubuntu-dark-aubergine);
    font-weight: 500;
}

.card-content {
    color: #666;
    line-height: 1.6;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--ubuntu-orange);
}

.stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

/* ==================== FORMULARIOS ==================== */
.form-group {
    margin-bottom: 20px;
    height: 4em;
    display: block;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ubuntu-dark-aubergine);
    font-weight: 500;
    width: 300px;
    float: left;
}

.form-input{
    float: right;
    width: 75%;
}

/* ==================== TABLAS ==================== */
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.table-header {
    background: linear-gradient(to right, var(--ubuntu-dark-aubergine), var(--ubuntu-mid-aubergine));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.table-row {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.table-row:hover {
    background: #f9f9f9;
}

.table-row.header {
    background: #f5f5f5;
    font-weight: bold;
    color: var(--ubuntu-dark-aubergine);
}

.table-cell {
    flex: 1;
    padding: 0 10px;
}

/* ==================== EDITOR SQL ==================== */
.sql-editor-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.editor-toolbar {
    background: var(--primary);
    /*#2C001E;
    padding: 10px 20px;*/
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.editor-content {
    min-height: 300px;
    padding: 20px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    width: 100%;
    resize: vertical;
}

.results-container {
    margin-top: 2px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.results-header {
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    display: none;
}

.results-content {
    padding: 0px;
    font-family: 'Monaco', 'Consolas', monospace;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ==================== BOTONES ==================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(to right, var(--ubuntu-orange), var(--ubuntu-light-orange));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 84, 32, 0.3);
}

.btn-secondary {
    background: #5D5D5D;
    color: white;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-danger {
    background: #F44336;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-header);
}

/* ==================== ESTADO DEL SISTEMA ==================== */
.system-status {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online {
    background: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

.status-warning {
    background: #FF9800;
    box-shadow: 0 0 10px #FF9800;
}

.status-error {
    background: #F44336;
    box-shadow: 0 0 10px #F44336;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    /*.sidebar {
                width: 200px;
            }*/

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .topbar-center {
        display: none;
    }
}


/* monaco style */
/* Estilos para Monaco Editor */
.monaco-editor {
    border-radius: 4px;
}

.monaco-editor .margin {
    background-color: var(--ubuntu-light-aubergine);
}

/* Ajustes para el contenedor */
#monaco-container {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}

/* Estilos para las sugerencias */
.monaco-editor .suggest-widget {
    font-size: 13px;
}

/* Asegurar que el editor se adapte */
.sql-editor-container {
    position: relative;
    margin-bottom: 2px;
}

/* En style.css */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 16px;
}











/*login*/
.bkglogin{  
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10001;
    height: 100%;
    background-color: #1c1919cc;
    left: 0;
    backdrop-filter: blur(8px); /* Corregido de background-filter */
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.wrapper {  
    width: 400px;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}*/
.bkglogin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5); /* Opcional: fondo semitransparente */
}

.wrapper {
    width: 400px;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* Asegurar que esté por encima de otros elementos */
    position: relative;
    z-index: 1001;
    margin: auto;
    top: 50px;
}

/* Para transiciones suaves */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d-hidden {
    display: none !important;
}

form {
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.input-field {
    position: relative;
    border-bottom: 2px solid #ccc;
    margin: 15px 0;
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #fff;
    font-size: 16px;
    pointer-events: none;
    transition: 0.15s ease;
}

.input-field input {
    width: 100%;
    height: 40px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #fff;
    padding: 0 5px;
}

.input-field input:focus~label,
.input-field input:valid~label {
    font-size: 0.8rem;
    top: 10px;
    transform: translateY(-120%);
}

.forget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0 35px 0;
    color: #fff;
}

#remember {
    accent-color: #fff;
}

.forget label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.forget label p {
    margin-left: 8px;
    cursor: pointer;
}

.wrapper a {
    color: #efefef;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wrapper a:hover {
    color: #fff;
    text-decoration: underline;
}

button {
    background: #fff;
    color: #000;
    font-weight: 600;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.register {
    text-align: center;
    margin-top: 30px;
    color: #fff;
}

/* Efecto de animación al cambiar entre formularios */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
























/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4CAF50;
    background: #e8f5e9;
}

.notification-error {
    border-left: 4px solid #f44336;
    background: #ffebee;
}

.notification-info {
    border-left: 4px solid #2196F3;
    background: #e3f2fd;
}

/* Dropdown de usuario */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.topbar-item:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

/* Mejoras para formularios */
.input-field {
    position: relative;
    margin-bottom: 50px;
}

.input-field input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.input-field label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    transition: all 0.3s;
    pointer-events: none;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
    top: -15px;
    font-size: 12px;
    color: var(--ubuntu-dark-aubergine);
}

.input-field input:focus {
    border-bottom: 2px solid var(--ubuntu-dark-aubergine);
}

/* Botón de login mejorado */
#loginBtn, #registerBtn {
    width: 100%;
    padding: 12px;
    background: var(--ubuntu-dark-aubergine);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

#loginBtn:hover, #registerBtn:hover {
    background: var(--ubuntu-light-aubergine);
}