
        
      :root{
        --grafikpro-secondary: #949494;
        --border-light: #e0e0e0;
     
      }






dialog.modal {
  /* This prevents the modal from locking the body scroll */
  overflow-y: hidden;
}

.modal {
  z-index: 100; /* Ensure modal is higher */
}
        body {
            
            font-family: 'Segoe UI', sans-serif;
            background-color: var(--grafikpro-gray-bg);
            margin: 0;
            overflow-x: hidden;
            scrollbar-gutter: unset !important;
        }

        .login-bg{
            background-color: var(--grafikpro-sidebar-bg);
        }

        .login-bg .container {
            background-color: white;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            vertical-align: middle;
            width: 80%; 
            border-radius: 10px; 
            padding: 60px;   
            margin-top: auto;
            margin-bottom: auto;
            max-width: 400px;
            margin-left: auto;
            margin-right: auto;
        }

        .btn-login {
            background-color: var(--grafikpro-sidebar-bg);
            color: white;
            padding: 0.6rem 3rem;
            border: none;
            margin-top: 30px;
            border-radius: 4px;
            width: 100%; 
        }

        .btn-login:hover {
            background-color: #4800b3;
            color: white;
        }


        /* --- Barra Superior Móvil (Oculta en Desktop) --- */
        .mobile-topbar {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background-color: var(--grafikpro-sidebar-bg);
            color: white;
            z-index: 1001;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .mobile-topbar .logo-mini {
            display: flex;
            align-items: center;
            font-weight: bold;
            font-size: 1.2rem;
            gap: 10px;
        }

        .menu-toggle-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* --- Sidebar Rediseñada --- */
        .sidebar {
            background-color: var(--grafikpro-sidebar-bg);
            width: 130px; 
            height: 100vh;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            padding: 20px 0;
            color: white;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .sidebar-brand {
            margin-bottom: 30px;
            text-align: center;
        }

        .logo-circle {
            width: 80px;
            height: 80px;
            background-color: white;
            border-radius: 60px; 
            margin: 0 auto 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-circle svg {
            width: 80px;
            height: 80px;
        }

        .sidebar-brand-text {
            display: block;
            font-size: 0.8rem;
            font-weight: bold;
            letter-spacing: 0.5px;
        }

        /* Enlaces del Menú */
        .nav-container {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .nav-container::-webkit-scrollbar {
            display: none;
        }

        .nav-container  .nav-link {
            padding: 12px 0;
            margin: 5px 10px; /* Margen para que el fondo blanco no toque los bordes laterales */
            border-radius: 10px; /* Bordes redondeados suaves */
            color: rgba(255, 255, 255, 0.8);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            font-size: 0.7rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .nav-container  .nav-link i {
            font-size: 1.4rem;
            margin-bottom: 5px;
        }

        /* Efecto al pasar el cursor (solo si NO está activo) */
        .nav-container  .nav-link:hover:not(.active) {
            color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* --- NUEVO ESTILO: Opción Seleccionada (Activa) --- */
        .nav-container  .nav-link.active {
            background-color: white;
            color: var(--grafikpro-sidebar-bg) !important; /* Cambia texto e ícono a morado */
            font-weight: bold;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Pequeña sombra para destacar */
        }

        .nav-container  .nav-bottom {
            margin-top: auto;
        }

        /* --- Ajuste del contenido principal --- */
        .main-content {
            margin-left: 130px;
            padding: 30px;
            transition: margin-left 0.3s ease;
        }

        .user-header h1 {
            font-weight: bold;
            font-size: 1.5rem;
            margin-bottom: 0;
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        /* Media Queries */
        @media (max-width: 992px) {
            .mobile-topbar { display: flex; }
            .sidebar {
                transform: translateX(-100%);
                padding-top: 80px;
            }
            .sidebar-brand { display: none; }
            .main-content {
                margin-left: 0;
                padding-top: 90px;
            }
            .sidebar.show { transform: translateX(0); }
            .sidebar-overlay.show {
                display: block;
                opacity: 1;
            }
        }



        /* --- Estilos para el formulario de configuración --- */
        /* Sección del Logo */
        .logo-wrapper {
            position: relative;
            width: 90px;
            height: 90px;
            border-radius: 50%;
            border: 3px solid #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }
        .logo-placeholder {
            width: 45px;
            height: 45px;
            background-color: var(--grafikpro-sidebar-bg);
            border-radius: 8px;
            position: relative;
        }
        /* Detalle blanco simulando el logo de la imagen */
        .logo-placeholder::after {
            content: '';
            position: absolute;
            bottom: 5px;
            right: 5px;
            width: 15px;
            height: 15px;
            background-color: white;
        }
        .edit-btn {
            position: absolute;
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
            background-color: #f4f4f4;
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #555;
            cursor: pointer;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .btn-save {
            background-color: var(--grafikpro-sidebar-bg);
            color: white;
            padding: 0.6rem 3rem;
            border: none;
            border-radius: 4px;
            width: 100%;
            max-width: 300px; /* Ancho máximo para que no ocupe toda la pantalla en desktop */
        }
        .btn-save:hover {
            background-color: #4800b3;
            color: white;
        }

        .btn-secondarygf {
            background-color: var(--grafikpro-secondary);
            color: white;
            padding: 0.6rem 3rem;
            border: none;
            border-radius: 4px;
            width: 100%;
            max-width: 300px; /* Ancho máximo para que no ocupe toda la pantalla en desktop */
        }
        .btn-secondarygf:hover {
            background-color: #4a4a4a;
            color: white;
        }

        .form-label {
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
            color: #000;
        }
        .form-control {
            /*border: 1px solid var(--grafikpro-sidebar-bg);*/
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
        }
        .form-control:focus {
            box-shadow: none;
            border-color: var(--grafikpro-sidebar-bg);
        }
        .color-picker-group {
            position: relative;
            display: inline-block;
        }
         /* Estilos de las Pestañas (Tabs) */
        .nav-tabs {
            border-bottom: 1px solid var(--grafikpro-sidebar-bg);
            margin-bottom: 3rem;
        }
        .nav-tabs .nav-link {
            border: none;
            color: #666;
            font-size: 1.1rem;
            padding: 0.5rem 0;
            margin-right: 3rem;
            background: transparent;
        }
        .nav-tabs .nav-link.active {
            color: #000;
            font-weight: bold;
            border-bottom: 2px solid #000;
        }
        .nav-tabs .nav-link:hover {
            border-bottom: 2px solid #ccc;
        }

        table.dataTable thead {
             border-radius: 10px 10px 0 0 !important; 
        }

        table.dataTable thead th {
            margin-top: 5px !important;
            background-color: var(--grafikpro-sidebar-bg) !important; /* Dark color example */
            color: white !important;
            font-weight: bold !important;
           /* Bordes redondeados en la parte superior */
        }

        .dataTables_filter {
    float: right !important;
    text-align: left;
    margin-bottom: 10px !important;
}

    .dataTables_wrapper .dataTables_paginate {
        background: transparent !important;
        color: var(--grafikpro-sidebar-bg) !important;
        border: none !important;
        float: right !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.page-item.active .page-link {
        background: var(--grafikpro-sidebar-bg) !important;
        color: white !important;
    }

    /* Round the top-left corner of the first header cell */
    table.dataTable thead th:first-child {
        border-top-left-radius: 10px;
    }

    /* Round the top-right corner of the last header cell */
    table.dataTable thead th:last-child {
        border-top-right-radius: 10px;
    }


    /* Personalización del Modal */
    .modal-content {
        border: none;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .modal-header {
        border-bottom: none;
        padding: 30px 40px 10px 40px;
    }

    .modal-title {
        font-weight: bold;
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 0 40px;
    }

    .modal-footer {
        border-top: none;
        padding: 20px 40px 40px 40px;
        justify-content: center;
    }


    /* Estilos de las filas de permisos */
    .permission-row {
        border-bottom: 1px solid var(--border-light);
        padding: 1.2rem 0;
    }
    
    .permission-row:last-child {
        border-bottom: none;
    }

    .icon-container {
        width: 40px;
        text-align: center;
        color: #333;
    }

    .permission-title {
        font-weight: bold;
        font-size: 0.95rem;
        width: 140px;
    }

    .sub-permissions {
        margin-left: 55px; /* Alineado debajo del título */
        margin-top: 8px;
        font-size: 0.85rem;
        color: #6c757d;
    }

    .sub-permission-item {
        display: flex;
        align-items: center;
        margin-right: 2.5rem;
    }

    .sub-permission-item span {
        margin-right: 10px;
    }

    /* Personalización de los Switches (Interruptores) */
    .form-switch .form-check-input {
        height: 1.2rem;
        width: 2.2rem;
        cursor: pointer;
    }
    
    .form-switch .form-check-input:focus {
        box-shadow: none;
        border-color: rgba(0,0,0,0.25);
    }

    /* Switch Morado cuando está activo */
    .switch-purple:checked {
        background-color: var(--grafikpro-sidebar-bg);
        border-color: var(--grafikpro-sidebar-bg);
    }