@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;700&display=swap');

/* =============================================================================
   MAC OS X SNOW LEOPARD (AQUA/METAL) THEME OVERRIDES (Enabled via body.theme-mac)
   ============================================================================= */

/* Hide Macintosh elements by default in normal mode */
.mac-menubar {
    display: none;
}

.mac-window-titlebar {
    display: none;
}

.mac-about-modal {
    display: none;
}

body.theme-mac {
    background-color: #f0f3f6 !important;
    /* Glossy Light Metallic Silver / Ice-blue Gradient */
    background-image:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(186, 216, 244, 0.4), transparent 50%),
        linear-gradient(135deg, #f5f7fb 0%, #d8e1e9 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    color: #333333 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Lucida Grande", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    padding-top: 22px !important;
    /* Spacing for the top menu bar */
    image-rendering: auto !important;
}

/* Global Typography Override in Snow Leopard Mode */
body.theme-mac h1,
body.theme-mac h2,
body.theme-mac h3,
body.theme-mac h4,
body.theme-mac h5,
body.theme-mac h6,
body.theme-mac .sidebar-logo,
body.theme-mac .login-logo {
    font-family: -apple-system, BlinkMacSystemFont, "Lucida Grande", "Segoe UI", sans-serif !important;
    color: #333333 !important;
    font-weight: bold !important;
    text-transform: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

/* Global Text Colors */
body.theme-mac p,
body.theme-mac span,
body.theme-mac label,
body.theme-mac td,
body.theme-mac th,
body.theme-mac div {
    color: #333333 !important;
}

/* =============================================================================
   MACINTOSH TOP GLOBAL MENU BAR (OS X Translucent Style)
   ============================================================================= */
body.theme-mac .mac-menubar {
    display: flex;
    height: 22px;
    background: linear-gradient(to bottom, rgba(248, 248, 248, 0.94) 0%, rgba(222, 222, 222, 0.94) 100%) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.28) !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Lucida Grande", sans-serif;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}

body.theme-mac .mac-menubar-left,
body.theme-mac .mac-menubar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

body.theme-mac .mac-menubar-right {
    margin-left: auto;
}

body.theme-mac .mac-menu-item {
    position: relative;
    cursor: pointer;
    padding: 0 10px;
    height: 22px;
    display: flex;
    align-items: center;
    border-radius: 3px;
}

body.theme-mac .mac-menu-item:hover {
    background: linear-gradient(to bottom, #5cb4fc 0%, #1c7fe2 100%) !important;
    color: #ffffff !important;
}

body.theme-mac .mac-menu-item:hover>span,
body.theme-mac .mac-menu-item:hover>div {
    color: #ffffff !important;
}

/* Translucent Dropdown Menu */
body.theme-mac .mac-dropdown {
    display: none;
    position: absolute;
    top: 22px;
    left: 0;
    background: rgba(253, 253, 253, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    border-radius: 0 0 5px 5px !important;
    list-style: none;
    min-width: 160px;
    padding: 4px 0;
    z-index: 10001;
}

body.theme-mac .mac-menu-item:hover .mac-dropdown {
    display: block;
}

body.theme-mac .mac-dropdown li {
    padding: 6px 20px;
    color: #333333;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
}

body.theme-mac .mac-dropdown li:hover {
    background: linear-gradient(to bottom, #5cb4fc 0%, #1c7fe2 100%) !important;
    color: #ffffff !important;
}

body.theme-mac .mac-dropdown li.divider {
    padding: 0;
    margin: 4px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    height: 0;
}

body.theme-mac .mac-dropdown li.divider:hover {
    background: transparent;
}

/* =============================================================================
   MACINTOSH WINDOW SYSTEM (Sleek Traffic-Light Titlebars)
   ============================================================================= */
body.theme-mac .mac-window-titlebar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    border-bottom: 1px solid #b3b3b3 !important;
    background: linear-gradient(to bottom, #f3f3f3 0%, #d8d8d8 50%, #c4c4c4 100%) !important;
    position: relative;
    padding: 0 60px;
    user-select: none;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: inset 0 1px 0 #ffffff !important;
}

/* Stripes removed for Snow Leopard design */
body.theme-mac .mac-window-stripes {
    display: none !important;
}

body.theme-mac .mac-window-title {
    background: transparent !important;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Lucida Grande", sans-serif !important;
    font-size: 13px;
    font-weight: 500 !important;
    color: #3b3b3b !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    z-index: 2;
    position: relative;
}

/* Close Box transformed into Red Traffic Light button */
/* body.theme-mac .mac-close-box {
    display: none !important;
} */

/* =============================================================================
   LOGIN CARD / WINDOW OVERRIDES (Aqua Style)
   ============================================================================= */
body.theme-mac .login-container {
    background: transparent !important;
}

body.theme-mac .login-card {
    background: #ececec !important;
    border: 1px solid #a3a3a3 !important;
    outline: none !important;
    border-radius: 8px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4) !important;
    padding: 0px !important;
    max-width: 400px;
    overflow: hidden !important;
}

body.theme-mac .login-card::before {
    display: none !important;
}

/* Inner content area of Mac Window login card */
body.theme-mac .login-card-content {
    padding: 24px 30px;
}

body.theme-mac .login-header {
    margin-bottom: 20px;
}

body.theme-mac .login-logo {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    text-align: center;
}

body.theme-mac .login-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13px;
    color: #666666 !important;
    text-align: center;
    text-shadow: none !important;
}

/* =============================================================================
   FORM INPUTS & BUTTONS (Aqua Design)
   ============================================================================= */
body.theme-mac .form-group {
    margin-bottom: 16px;
}

body.theme-mac .form-label {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #444444 !important;
    margin-bottom: 6px;
    text-transform: none !important;
    letter-spacing: 0px !important;
    text-shadow: none !important;
}

body.theme-mac .form-input {
    background: #ffffff !important;
    border: 1px solid #b3b3b3 !important;
    border-radius: 4px !important;
    color: #333333 !important;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

body.theme-mac .form-input:focus {
    outline: none !important;
    border-color: #7bb5ed !important;
    box-shadow: 0 0 6px rgba(0, 102, 204, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

body.theme-mac .form-input:disabled {
    background: #f0f0f0 !important;
    color: #111111 !important;
    opacity: 0.9 !important;
    font-weight: bold !important;
    cursor: not-allowed;
}

/* Alert Boxes Styled like Aqua Alerts */
body.theme-mac .alert {
    background: #ffffff !important;
    border: 1px solid #b3b3b3 !important;
    border-radius: 6px !important;
    color: #333333 !important;
    padding: 12px !important;
    margin-bottom: 18px !important;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

body.theme-mac .alert svg {
    stroke: #ff5f56 !important;
    /* Red for alerts */
}

body.theme-mac .alert-danger {
    border-left: 4px solid #ff5f56 !important;
}

body.theme-mac .alert-success {
    border-left: 4px solid #27c93f !important;
}

/* Buttons - Glossy Silver button, highlights in bright blue on hover */
body.theme-mac .btn {
    background: linear-gradient(to bottom, #ffffff 0%, #ececec 50%, #e1e1e1 51%, #f4f4f4 100%) !important;
    color: #333333 !important;
    border: 1px solid #a3a3a3 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13px !important;
    font-weight: normal !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.theme-mac .btn:hover {
    background: linear-gradient(to bottom, #7fc1fc 0%, #3ca0f6 50%, #1184e8 51%, #79c0fc 100%) !important;
    color: #ffffff !important;
    border-color: #0c71cd !important;
    box-shadow: 0 2px 4px rgba(12, 113, 205, 0.25) !important;
    transform: none !important;
}

body.theme-mac .btn:hover svg {
    stroke: #ffffff !important;
}

body.theme-mac .btn svg {
    stroke: #555555 !important;
}

/* =============================================================================
   DASHBOARD OVERRIDES
   ============================================================================= */
body.theme-mac .dashboard-container {
    background: transparent !important;
}

/* Sidebar Override as a sleek grey Finder pane */
body.theme-mac .sidebar {
    background: #f0f0f0 !important;
    border-right: 1px solid #d3d3d3 !important;
    border-radius: 0px !important;
    top: 22px !important;
    height: calc(100vh - 22px) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.theme-mac .sidebar-header {
    border-bottom: 1px solid #d3d3d3 !important;
    background: linear-gradient(to bottom, #f3f3f3 0%, #e6e6e6 100%) !important;
    height: 48px !important;
    display: flex;
    align-items: center;
    padding: 0 20px !important;
}

body.theme-mac .user-panel {
    background: #e6e6e6 !important;
    border-bottom: 1px solid #d3d3d3 !important;
    padding: 12px 20px !important;
}

body.theme-mac .user-avatar {
    background: linear-gradient(to bottom, #e3e3e3 0%, #b8b8b8 100%) !important;
    border: 1px solid #999999 !important;
    color: #333333 !important;
    border-radius: 50% !important;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

body.theme-mac .user-name {
    color: #333333 !important;
    font-weight: 600;
}

body.theme-mac .user-role-global {
    color: #666666 !important;
    font-family: monospace !important;
    font-weight: bold;
}

/* Sidebar Navigation Items */
body.theme-mac .menu-link {
    border-radius: 4px !important;
    border: none !important;
    color: #444444 !important;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13px !important;
}

body.theme-mac .menu-link:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
    transform: none !important;
}

body.theme-mac .menu-link:hover svg {
    stroke: #333333 !important;
}

body.theme-mac .menu-link:hover .menu-bullet {
    background-color: #333333 !important;
    box-shadow: none !important;
}

body.theme-mac .menu-link.active {
    background: linear-gradient(to bottom, #5cb4fc 0%, #1c7fe2 100%) !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15) !important;
}

body.theme-mac .menu-link.active svg {
    stroke: #ffffff !important;
}

body.theme-mac .menu-link.active .menu-bullet {
    background-color: #ffffff !important;
}

body.theme-mac .menu-bullet {
    background-color: #777777 !important;
}

body.theme-mac .sidebar-footer {
    border-top: 1px solid #d3d3d3 !important;
}

body.theme-mac .btn-logout {
    border: 1px solid #a3a3a3 !important;
    background: linear-gradient(to bottom, #ffffff 0%, #ececec 100%) !important;
    color: #333333 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
}

body.theme-mac .btn-logout:hover {
    background: linear-gradient(to bottom, #ff9b9b 0%, #ff3b30 100%) !important;
    color: #ffffff !important;
    border-color: #e0443e !important;
    box-shadow: none !important;
}

body.theme-mac .btn-logout svg {
    stroke: #555555 !important;
}

body.theme-mac .btn-logout:hover svg {
    stroke: #ffffff !important;
}

/* =============================================================================
   MAIN CONTENT AREA
   ============================================================================= */
body.theme-mac .main-content {
    margin-left: 280px !important;
    padding: 30px !important;
}

body.theme-mac .content-header {
    margin-bottom: 25px !important;
    border-bottom: 1px solid #d3d3d3 !important;
    padding-bottom: 15px !important;
}

body.theme-mac .welcome-section h1 {
    font-size: 1.8rem !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

body.theme-mac .welcome-section p {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: #666666 !important;
}

body.theme-mac .btn-header-logout {
    background: linear-gradient(to bottom, #ffffff 0%, #ececec 100%) !important;
    border: 1px solid #a3a3a3 !important;
    color: #333333 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

body.theme-mac .btn-header-logout:hover {
    background: linear-gradient(to bottom, #ff9b9b 0%, #ff3b30 100%) !important;
    color: #ffffff !important;
    border-color: #e0443e !important;
    box-shadow: none !important;
}

body.theme-mac .btn-header-logout svg {
    stroke: #555555 !important;
}

body.theme-mac .btn-header-logout:hover svg {
    stroke: #ffffff !important;
}

/* =============================================================================
   MODULE CARD GRID (Sleek Aqua Cards)
   ============================================================================= */
body.theme-mac .module-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    margin-top: 0px !important;
    height: 180px !important;
    position: relative !important;
    transition: all 0.25s ease !important;
}

/* Folder tab hidden for modern card layout */
body.theme-mac .module-card::before {
    display: none !important;
}

body.theme-mac .module-card::after {
    display: none !important;
}

body.theme-mac .module-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0, 102, 204, 0.18) !important;
    border-color: #7bb5ed !important;
    background: #ffffff !important;
}

body.theme-mac .module-card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 8px;
}

body.theme-mac .module-icon-circle {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    border: 1px solid #1c7fe2 !important;
    background: linear-gradient(to bottom, #7fc1fc 0%, #3ca0f6 100%) !important;
    color: #ffffff !important;
}

body.theme-mac .module-card:hover .module-icon-circle {
    background: linear-gradient(to bottom, #3ca0f6 0%, #1184e8 100%) !important;
}

body.theme-mac .module-card:hover .module-icon-circle svg {
    stroke: #fdfdfd !important;
}

body.theme-mac .module-title {
    font-size: 1.1rem !important;
    margin-top: 8px !important;
    text-shadow: none !important;
}

body.theme-mac .module-desc {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem !important;
    color: #666666 !important;
}

/* Access role badges inside Macintosh Mode (Glossy Pill Badges) */
body.theme-mac .badge-role {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    padding: 2px 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #ffffff !important;
    text-transform: uppercase;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}

body.theme-mac .badge-role-1 {
    background: linear-gradient(to bottom, #06550a 0%, #039b36 100%) !important;
    /* Admin */
}

body.theme-mac .badge-role-2 {
    background: linear-gradient(to bottom, #7fc1fc 0%, #007aff 100%) !important;
    /* Editor */
}

body.theme-mac .badge-role-3 {
    background: linear-gradient(to bottom, #c6c6c6 0%, #8e8e93 100%) !important;
    /* Lector */
}

body.theme-mac .badge-role-4 {
    background: linear-gradient(to bottom, #d6adfc 0%, #8a2be2 100%) !important;
    border: 1px solid #6a0dad !important;
    /* Limit 1 */
}

body.theme-mac .badge-role-5 {
    background: linear-gradient(to bottom, #ffc87c 0%, #ff8c00 100%) !important;
    border: 1px solid #d35400 !important;
    /* Limit 2 */
}

body.theme-mac .badge-role-6 {
    background: linear-gradient(to bottom, #ff9b9b 0%, #d32f2f 100%) !important;
    border: 1px solid #b71c1c !important;
    /* Inhabilitado */
}

body.theme-mac .badge-uf {
    background: linear-gradient(to bottom, #7fc1fc 0%, #007aff 100%) !important;
    color: #ffffff !important;
    border: 1px solid #005ecb !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}

body.theme-mac .badge-pesos {
    background: linear-gradient(to bottom, #8cd994 0%, #1b6327 100%) !important;
    color: #ffffff !important;
    border: 1px solid #13461c !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}

/* =============================================================================
   SPECIFIC MODULE ACTION VIEW (Finder Panel Style)
   ============================================================================= */
body.theme-mac .module-view-container {
    background: #ececec !important;
    border: 1px solid #a3a3a3 !important;
    outline: none !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
    padding: 0px !important;
    overflow: hidden !important;
}

body.theme-mac .module-view-inner {
    padding: 30px;
}

body.theme-mac .module-view-header {
    border-bottom: 1px solid #d3d3d3 !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
}

body.theme-mac .action-panel-retro {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid #d3d3d3 !important;
    border-radius: 6px !important;
    padding: 20px !important;
    margin-top: 20px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* =============================================================================
   RETRO ABOUT SYSTEM MODAL (Aqua Sheet Style)
   ============================================================================= */
body.theme-mac .mac-about-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35) !important;
    background-image: none !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

body.theme-mac .mac-about-dialog {
    background: #ececec !important;
    border: 1px solid #a3a3a3 !important;
    outline: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
    border-radius: 8px !important;
    width: 400px;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13px;
    text-align: center;
}

body.theme-mac .mac-dialog-icon {
    font-size: 42px !important;
    color: #333333 !important;
    margin-bottom: 12px;
    display: inline-block;
}

body.theme-mac .mac-dialog-title {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 18px;
    font-weight: bold;
    color: #222222 !important;
    margin-bottom: 10px;
    text-shadow: none !important;
}

body.theme-mac .mac-dialog-content {
    line-height: 1.5;
    margin-bottom: 20px;
    color: #555555 !important;
}

body.theme-mac .mac-dialog-ok-btn {
    background: linear-gradient(to bottom, #ffffff 0%, #ececec 50%, #e1e1e1 51%, #f4f4f4 100%) !important;
    color: #333333 !important;
    border: 1px solid #a3a3a3 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    padding: 6px 24px !important;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    cursor: pointer;
    outline: none;
}

body.theme-mac .mac-dialog-ok-btn:hover {
    background: linear-gradient(to bottom, #7fc1fc 0%, #3ca0f6 50%, #1184e8 51%, #79c0fc 100%) !important;
    color: #ffffff !important;
    border-color: #0c71cd !important;
}

/* =============================================================================
   THEME TOGGLE BUTTON OVERRIDES FOR AQUA STYLE
   ============================================================================= */
body.theme-mac #themeToggleBtn {
    background: linear-gradient(to bottom, #ffffff 0%, #ececec 50%, #e1e1e1 51%, #f4f4f4 100%) !important;
    color: #333333 !important;
    border: 1px solid #a3a3a3 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

body.theme-mac #themeToggleBtn:hover {
    background: linear-gradient(to bottom, #7fc1fc 0%, #3ca0f6 50%, #1184e8 51%, #79c0fc 100%) !important;
    color: #ffffff !important;
    border-color: #0c71cd !important;
}

/* =============================================================================
   RESPONSIVIDAD
   ============================================================================= */
@media (max-width: 992px) {
    body.theme-mac .main-content {
        margin-left: 0 !important;
        padding-top: 40px !important;
    }

    body.theme-mac .sidebar {
        z-index: 10002 !important;
    }
}

/* =============================================================================
   TRULY BASIC THEME OVERRIDES (Enabled via body.theme-basic)
   ============================================================================= */
body.theme-basic {
    background-color: #111111 !important;
    background-image: none !important;
    color: #e0e0e0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    padding-top: 0px !important;
    /* No top menubar */
}

/* Disable all transitions, animations, filters for total speed & compatibility */
body.theme-basic * {
    transition: none !important;
    animation: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.theme-basic h1,
body.theme-basic h2,
body.theme-basic h3,
body.theme-basic h4,
body.theme-basic h5,
body.theme-basic h6,
body.theme-basic .sidebar-logo,
body.theme-basic .login-logo {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-transform: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

body.theme-basic p,
body.theme-basic span,
body.theme-basic label,
body.theme-basic td,
body.theme-basic th,
body.theme-basic div {
    color: #cccccc !important;
}

body.theme-basic .mac-menubar {
    display: none !important;
}

body.theme-basic .mac-window-titlebar {
    display: none !important;
}

body.theme-basic .mac-about-modal {
    display: none !important;
}

/* Basic flat containers */
body.theme-basic .login-container {
    background: transparent !important;
}

body.theme-basic .login-card {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 30px !important;
    /* Reset padding */
    outline: none !important;
}

body.theme-basic .login-card::before {
    display: none !important;
}

body.theme-basic .login-card-content {
    padding: 0 !important;
}

body.theme-basic .login-logo {
    font-size: 2.2rem;
    color: #2563eb !important;
    text-align: center;
    margin-bottom: 8px;
}

body.theme-basic .login-subtitle {
    color: #888888 !important;
    text-align: center;
}

body.theme-basic .form-group {
    margin-bottom: 16px;
}

body.theme-basic .form-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #bbbbbb !important;
    text-transform: none !important;
    letter-spacing: 0px !important;
}

body.theme-basic .form-input {
    background: #242424 !important;
    border: 1px solid #3d3d3d !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
}

body.theme-basic .form-input:focus {
    outline: none !important;
    border-color: #2563eb !important;
    background: #2d2d2d !important;
    box-shadow: none !important;
}

body.theme-basic .alert {
    background: #271414 !important;
    border: 1px solid #441a1a !important;
    color: #f87171 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

body.theme-basic .alert svg {
    stroke: #f87171 !important;
}

body.theme-basic .alert-success {
    background: #14271c !important;
    border: 1px solid #1a4427 !important;
    color: #34d399 !important;
}

body.theme-basic .alert-success svg {
    stroke: #34d399 !important;
}

body.theme-basic .btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: bold !important;
    padding: 10px 16px !important;
}

body.theme-basic .btn:hover {
    background: #1d4ed8 !important;
    transform: none !important;
    box-shadow: none !important;
}

body.theme-basic .btn svg {
    stroke: #ffffff !important;
}

/* Sidebar & Dashboard */
body.theme-basic .sidebar {
    background: #161616 !important;
    border-right: 1px solid #2d2d2d !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    top: 0px !important;
    height: 100vh !important;
}

body.theme-basic .sidebar-header {
    border-bottom: 1px solid #2d2d2d !important;
    background: #161616 !important;
    height: 60px !important;
}

body.theme-basic .sidebar-logo {
    color: #2563eb !important;
    background: none !important;
    text-shadow: none !important;
}

body.theme-basic .user-panel {
    background: #1c1c1c !important;
    border-bottom: 1px solid #2d2d2d !important;
}

body.theme-basic .user-avatar {
    background: #333333 !important;
    border: 1px solid #444444 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

body.theme-basic .user-name {
    color: #ffffff !important;
}

body.theme-basic .user-role-global {
    color: #888888 !important;
}

body.theme-basic .menu-link {
    border-radius: 4px !important;
    color: #bbbbbb !important;
    font-size: 13px !important;
}

body.theme-basic .menu-link:hover {
    background: #242424 !important;
    color: #ffffff !important;
}

body.theme-basic .menu-link.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.theme-basic .menu-link.active svg {
    stroke: #ffffff !important;
}

body.theme-basic .menu-bullet {
    background-color: #888888 !important;
}

body.theme-basic .menu-link.active .menu-bullet {
    background-color: #ffffff !important;
}

body.theme-basic .sidebar-footer {
    border-top: 1px solid #2d2d2d !important;
}

body.theme-basic .btn-logout {
    border: 1px solid #441a1a !important;
    background: #271414 !important;
    color: #f87171 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

body.theme-basic .btn-logout:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

body.theme-basic .btn-logout svg {
    stroke: #f87171 !important;
}

body.theme-basic .btn-logout:hover svg {
    stroke: #ffffff !important;
}

/* Content Panel */
body.theme-basic .main-content {
    margin-left: 280px !important;
    padding: 30px !important;
}

body.theme-basic .content-header {
    border-bottom: 1px solid #2d2d2d !important;
}

body.theme-basic .welcome-section h1 {
    color: #ffffff !important;
}

body.theme-basic .welcome-section p {
    color: #888888 !important;
}

body.theme-basic .btn-header-logout {
    background: #271414 !important;
    border: 1px solid #441a1a !important;
    color: #f87171 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

body.theme-basic .btn-header-logout:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

body.theme-basic .btn-header-logout svg {
    stroke: #f87171 !important;
}

body.theme-basic .btn-header-logout:hover svg {
    stroke: #ffffff !important;
}

/* Flat Grid Cards */
body.theme-basic .module-card {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    margin-top: 0px !important;
    height: 180px !important;
}

body.theme-basic .module-card::before,
body.theme-basic .module-card::after {
    display: none !important;
}

body.theme-basic .module-card:hover {
    border-color: #2563eb !important;
    background: #222222 !important;
}

body.theme-basic .module-card-header {
    border-bottom: 1px solid #2d2d2d !important;
}

body.theme-basic .module-icon-circle {
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    border: 1px solid #3d3d3d !important;
    background: #242424 !important;
    color: #2563eb !important;
}

body.theme-basic .module-card:hover .module-icon-circle {
    background: #2563eb !important;
    color: #ffffff !important;
}

body.theme-basic .module-card:hover .module-icon-circle svg {
    stroke: #ffffff !important;
}

body.theme-basic .module-title {
    color: #ffffff !important;
    text-shadow: none !important;
}

body.theme-basic .module-desc {
    color: #888888 !important;
}

body.theme-basic .badge-role {
    font-size: 11px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    border: none !important;
    color: #ffffff !important;
}

body.theme-basic .badge-role-1 {
    background: #1B6327 !important;
}

body.theme-basic .badge-role-2 {
    background: #2563eb !important;
}

body.theme-basic .badge-role-3 {
    background: #4b5563 !important;
}

body.theme-basic .badge-role-4 {
    background: #6d28d9 !important;
    color: #ffffff !important;
}

body.theme-basic .badge-role-5 {
    background: #b45309 !important;
    color: #ffffff !important;
}

body.theme-basic .badge-role-6 {
    background: #7f1d1d !important;
    color: #fca5a5 !important;
}

/* Flat Module Action view */
body.theme-basic .module-view-container {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 30px !important;
}

body.theme-basic .module-view-header {
    border-bottom: 1px solid #2d2d2d !important;
}

body.theme-basic .action-panel-retro {
    background: #161616 !important;
    border: 1px dashed #333333 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

/* Floating switcher button in basic mode */
body.theme-basic #themeToggleBtn {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.theme-basic #themeToggleBtn:hover {
    background: #1d4ed8 !important;
}

@media (max-width: 992px) {
    body.theme-basic .main-content {
        margin-left: 0 !important;
    }
}

/* =============================================================================
   CLIENT FORM SECTION STYLING (Shared Grid and Sections)
   ============================================================================= */
.client-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.btn-tool {
    font-size: 13px !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
}

.btn-tool svg {
    stroke: currentColor !important;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.client-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px;
}

.section-title-retro {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.estado-activo,
body.theme-mac .form-input.estado-activo:disabled,
body.theme-mac .form-input.estado-activo[disabled],
body.theme-basic .form-input.estado-activo:disabled,
body.theme-basic .form-input.estado-activo[disabled],
.estado-activo:disabled,
.estado-activo[disabled] {
    color: var(--color-primary) !important;
    -webkit-text-fill-color: var(--color-primary) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.estado-inactivo,
body.theme-mac .form-input.estado-inactivo:disabled,
body.theme-mac .form-input.estado-inactivo[disabled],
body.theme-basic .form-input.estado-inactivo:disabled,
body.theme-basic .form-input.estado-inactivo[disabled],
.estado-inactivo:disabled,
.estado-inactivo[disabled] {
    color: var(--color-danger) !important;
    -webkit-text-fill-color: var(--color-danger) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.select-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M7 9l3 3 3-3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 18px !important;
    padding-right: 30px !important;
}

/* =============================================================================
   SNOW LEOPARD OVERRIDES FOR CLIENT FORM
   ============================================================================= */
body.theme-mac .client-toolbar {
    border-bottom: 1px solid #d3d3d3 !important;
}

body.theme-mac .btn-tool {
    background: linear-gradient(to bottom, #ffffff 0%, #ececec 50%, #e1e1e1 51%, #f4f4f4 100%) !important;
    color: #333333 !important;
    border: 1px solid #a3a3a3 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

body.theme-mac .btn-tool:hover {
    background: linear-gradient(to bottom, #7fc1fc 0%, #3ca0f6 50%, #1184e8 51%, #79c0fc 100%) !important;
    color: #ffffff !important;
    border-color: #0c71cd !important;
}

body.theme-mac .btn-tool-active {
    background: linear-gradient(to bottom, #5cb4fc 0%, #1c7fe2 100%) !important;
    color: #ffffff !important;
    border-color: #0c71cd !important;
}

body.theme-mac .btn-danger-retro {
    background: linear-gradient(to bottom, #ffffff 0%, #fcebeb 100%) !important;
    border-color: #e0a3a3 !important;
    color: #cc3f3f !important;
}

body.theme-mac .btn-danger-retro:hover {
    background: linear-gradient(to bottom, #ff9b9b 0%, #ff3b30 100%) !important;
    color: #ffffff !important;
    border-color: #e0443e !important;
}

body.theme-mac .btn-cancel-retro {
    background: linear-gradient(to bottom, #ffffff 0%, #ececec 100%) !important;
    border-color: #a3a3a3 !important;
    color: #666666 !important;
}

body.theme-mac .btn-cancel-retro:hover {
    background: linear-gradient(to bottom, #cccccc 0%, #999999 100%) !important;
    color: #ffffff !important;
    border-color: #777777 !important;
}

body.theme-mac .client-section {
    background: #fcfcfc !important;
    border: 1px solid #c5c5c5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.theme-mac .section-title-retro {
    color: #3b3b3b !important;
    border-bottom: 1px solid #d3d3d3 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.theme-mac .form-input:disabled {
    background-color: #f3f3f3 !important;
    color: #777777 !important;
    border-color: #dcdcdc !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* =============================================================================
   TRULY BASIC OVERRIDES FOR CLIENT FORM
   ============================================================================= */
body.theme-basic .client-toolbar {
    border-bottom: 1px solid #2d2d2d !important;
}

body.theme-basic .btn-tool {
    background: #242424 !important;
    color: #cccccc !important;
    border: 1px solid #3d3d3d !important;
    box-shadow: none !important;
}

body.theme-basic .btn-tool:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

body.theme-basic .btn-tool-active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

body.theme-basic .btn-danger-retro {
    background: #2d1616 !important;
    color: #f87171 !important;
    border: 1px solid #441a1a !important;
}

body.theme-basic .btn-danger-retro:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

body.theme-basic .btn-cancel-retro {
    background: #1c1c1c !important;
    color: #bbbbbb !important;
    border: 1px solid #2d2d2d !important;
}

body.theme-basic .btn-cancel-retro:hover {
    background: #4b5563 !important;
    color: #ffffff !important;
    border-color: #4b5563 !important;
}

body.theme-basic .client-section {
    background: #161616 !important;
    border: 1px solid #2d2d2d !important;
}

body.theme-basic .section-title-retro {
    color: #2563eb !important;
    border-bottom: 1px solid #2d2d2d !important;
}

body.theme-basic .form-input:disabled {
    background-color: #1a1a1a !important;
    color: #666666 !important;
    border-color: #2d2d2d !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* =============================================================================
   CLIENT INFO NOTE STYLING (Dark & Light Theme Adaptability)
   ============================================================================= */
.client-info-note {
    font-size: 13px;
    font-style: italic;
    margin-top: 15px;
    line-height: 1.4;
    padding: 10px 12px;
    border-radius: 6px;
    display: block;
}

body.theme-basic div.client-info-note {
    color: #5898eb !important;
    background: rgba(88, 152, 235, 0.05) !important;
    border: 1px solid rgba(88, 152, 235, 0.15) !important;
}

body.theme-mac div.client-info-note {
    color: #0c6cc9 !important;
    background: rgba(12, 108, 201, 0.05) !important;
    border: 1px solid rgba(12, 108, 201, 0.15) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Lucida Grande", sans-serif !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}