body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #f4f6f9;
}

#canvas-container {
    width: 100%;
    height: 100vh;
    background-color: #f8f9fa;
}

#mynetwork {
    width: 100%;
    height: 100%;
}

/* =========================================
   PANEL FLOTANTE INFERIOR
   ========================================= */
#panel-flotante {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#panel-flotante.colapsado {
    transform: translateY(calc(100% - 50px));
}

.panel-header {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.panel-header h3 {
    margin: 0;
    font-size: 16px;
}

.btn-min-max {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.panel-body {
    padding: 20px;
    max-height: 40vh;
    overflow-y: auto;
}

/* =========================================
   PESTAÑAS (TABS)
   ========================================= */
.tab-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    border-bottom: 2px solid #eee;
}

.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    color: #7f8c8d;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
}

.tab-link:hover {
    color: #34495e;
}

.tab-link.active {
    border-bottom: 3px solid #3498db;
    color: #2c3e50;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =========================================
   FORMULARIOS
   ========================================= */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
}

.btn-guardar {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-guardar:hover {
    background: #2ecc71;
}

.btn-guardar:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* =========================================
   MODALES
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: fadeUp 0.3s;
}

.modal-header {
    background: #34495e;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.btn-close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 15px;
    max-height: 60vh;
    overflow-y: auto;
}

/* =========================================
   TABLAS (Propiedades y Conexiones)
   ========================================= */
.table-propiedades {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-propiedades th {
    width: 40%;
    background: #ecf0f1;
    padding: 10px;
    border-bottom: 1px solid #bdc3c7;
    font-weight: 600;
    color: #2c3e50;
}

.table-propiedades td {
    width: 60%;
    padding: 10px;
    border-bottom: 1px solid #bdc3c7;
    color: #34495e;
    word-break: break-word;
}

/* =========================================
   BREADCRUMBS
   ========================================= */
.breadcrumb-box {
    background: #e8f4f8;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    margin-top: 8px;
    font-size: 13px;
    color: #2c3e50;
    font-family: monospace;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item {
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
    font-weight: bold;
}

.breadcrumb-separator {
    color: #7f8c8d;
    font-weight: bold;
}

/* Animaciones */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
