/* ==========================================
   ESTILOS GENERALES Y BASE
   ========================================== */

   body {
    font-family: 'Urbanist', sans-serif !important;
    padding-top: 60px; /* Compensar navbar fijo */
    background-color: rgba(65, 148, 166, 0.03);
  }
  
  .breadcrumb a {
      color: #375C8B !important;
    }
    
  .breadcrumb a:hover {
      color: #A0C03E !important;
    }
    
  .breadcrumb .is-active a {
      color: #4194A6!important;
    }
  
  .swal2-container {
      z-index: 1500 !important;
  }
  
  /* ==========================================
     ESTILOS BOTONES
     ========================================== */
  
  .buttons {
    display: flex;
    justify-content: flex-end;
  }
  
  .buttons-table {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
  }
  
  .buttons-table-sg {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  .icon-button-red {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .icon-button-red .icon i {
    color: #F94C16;
  }
  
  .icon-button-red:hover .icon i {
    color: #fb8f6d !important;
  }
  
  .icon-button-red:disabled .icon i {
    color: #fb8f6d;
    cursor: not-allowed;
    opacity: 0.5;
  }
  
  .icon-button-blue {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .icon-button-blue  .icon i {
    color: #375C8B;
  }
  
  .icon-button-blue:hover .icon i {
    color: #8299b7 !important;
  }
  
  .icon-button-blue:disabled .icon i {
    color: #8299b7;
    cursor: not-allowed;
    opacity: 0.5;
  }
  
  .icon-button-orange {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .icon-button-orange  .icon i {
    color: #FAD232;
  }
  
  .icon-button-orange:hover .icon i {
    color: #fce37f !important;
  }
  
  .icon-button-orange:disabled .icon i {
    color: #fce37f;
    cursor: not-allowed;
    opacity: 0.5;
  }
  
  .icon-button-green {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .icon-button-green  .icon i {
    color: #A0C03E;
  }
  
  .icon-button-green:hover .icon i {
    color: #c4d886 !important;
  }
  
  .icon-button-green:disabled .icon i {
    color: #c4d886;
    cursor: not-allowed;
    opacity: 0.5;
  }
  
  .custom-url {
    color: #375C8B;
  }
  
  .custom-url:hover {
    color: #4194A6;
  }
  
  /* ==========================================
     SELECT2 Y TOOLTIPS
     ========================================== */
  
  .has-tooltip::after {
    position: absolute !important;
    z-index: 10002 !important;
  }
  
  .select2-dropdown {
    z-index: 1500 !important;
  }
  
  .select2-selection__arrow {
    display: none !important;
  }
  
  .select2 {
    font-family: "Nunito", sans-serif !important;
  }
  
  .select2-container {
    .select2-selection.select2-selection--single {
      height: 2.5em !important;
      padding-top: calc(0.5em - 1px);
      padding-bottom: calc(0.5em - 1px);
      border-color: #dbdbdb;
    }
  
    .select2-selection.select2-selection--single:hover {
      border-color: #b5b5b5;
    }
    .select2-selection.select2-selection--single:focus {
      border-color: #485fc7;
    }
  }
  
  /* ==========================================
     OFFCANVAS
     ========================================== */
  
  .offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }
  
  .offcanvas-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }
  
  .offcanvas {
    position: fixed;
    top: 60px;
    right: -520px;
    width: 520px;
    height: calc(100% - 60px);
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .offcanvas.is-active {
    right: 0;
  }
  
  .offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
  }
  
  .offcanvas-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
  }
  
  .offcanvas .box {
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fafafa;
  }
  
  .offcanvas .box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
  }
  
  .offcanvas .box ul {
    margin-left: 1rem;
    list-style-type: disc;
    color: #4b5563;
  }
  
  .offcanvas .box ul li {
    margin-bottom: 0.3rem;
  }
  
  .offcanvas .has-background-light {
    background: #f9fafb !important;
    border-left: 3px solid #3b82f6;
  }
  
  .offcanvas .has-text-info {
    font-size: 0.85rem;
    color: #2563eb;
    font-style: italic;
  }
  
  /* ==========================================
     ESTILOS PARA PÁGINAS DE LOGIN Y REGISTRO
     ========================================== */
  
  .login-input,
  .register-input {
      border: 2px solid #e2e8f0;
      border-radius: 12px;
      height: 3em;
      font-family: 'Urbanist', sans-serif;
      font-size: 1rem;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      background: #fafafa;
      padding-left: 3rem;
  }
  
  .login-input:hover,
  .register-input:hover {
      border-color: #cbd5e0;
      background: #ffffff;
  }
  
  .login-input:focus,
  .register-input:focus {
      border-color: #A0C03E;
      box-shadow: 0 0 0 3px rgba(160, 192, 62, 0.1);
      outline: none;
      background: #ffffff;
  }
  
  .login-input::placeholder,
  .register-input::placeholder {
      color: #a0aec0;
      font-weight: 400;
  }
  
  .login-button,
  .register-button {
      background: linear-gradient(135deg, #A0C03E 0%, #8ab034 100%);
      color: white;
      font-weight: 700;
      height: 3em;
      border: none;
      border-radius: 12px;
      font-size: 1rem;
      letter-spacing: 0.5px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 12px rgba(160, 192, 62, 0.3);
  }
  
  .login-button:hover,
  .register-button:hover {
      background: linear-gradient(135deg, #8ab034 0%, #A0C03E 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(160, 192, 62, 0.4);
  }
  
  .login-button:active,
  .register-button:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(160, 192, 62, 0.3);
  }
  
  .login-button:disabled,
  .register-button:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
  }
  
  .password-toggle {
      pointer-events: all;
      cursor: pointer;
      transition: all 0.3s;
  }
  
  .password-toggle i {
      color: #a0aec0;
      transition: all 0.3s;
  }
  
  .password-toggle:hover i {
      color: #A0C03E;
      transform: scale(1.15);
  }
  
  .forgot-link {
      color: #4194A6;
      font-size: 0.9rem;
      transition: all 0.3s;
      text-decoration: none;
  }
  
  .forgot-link:hover {
      color: #A0C03E;
      text-decoration: underline;
  }
  
  .register-link,
  .login-link {
      color: #A0C03E;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.3s;
      border-bottom: 2px solid transparent;
      padding-bottom: 2px;
  }
  
  .register-link:hover,
  .login-link:hover {
      color: #4194A6;
      border-bottom: 2px solid #4194A6;
  }
  
  .auth-box {
      border-radius: 16px;
      box-shadow: 0 8px 24px rgba(160, 192, 62, 0.12);
      border: 1px solid rgba(160, 192, 62, 0.1);
      background: linear-gradient(135deg, #ffffff 0%, #fafffe 100%);
  }
  
  .auth-notification {
      border-radius: 10px;
      border-left: 4px solid #A0C03E;
      animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .auth-notification.is-danger {
      border-left-color: #F94C16;
  }
  
  @keyframes slideInDown {
      from {
          opacity: 0;
          transform: translateY(-20px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  .auth-label {
      color: #2d3748;
      font-weight: 600;
      font-size: 0.95rem;
      margin-bottom: 0.5rem;
  }
  
  .control.has-icons-left .icon.is-left {
      pointer-events: none;
      transition: all 0.3s;
  }
  
  .login-input:focus ~ .icon.is-left i,
  .register-input:focus ~ .icon.is-left i {
      color: #4194A6 !important;
      transform: scale(1.1);
  }
  
  .auth-checkbox input[type="checkbox"] {
      width: 18px;
      height: 18px;
      border-radius: 4px;
      border: 2px solid #cbd5e0;
      cursor: pointer;
      transition: all 0.2s;
      accent-color: #A0C03E;
  }
  
  .auth-checkbox input[type="checkbox"]:hover {
      border-color: #A0C03E;
  }
  
  .auth-checkbox input[type="checkbox"]:checked {
      background-color: #A0C03E;
      border-color: #A0C03E;
  }
  
  .field:focus-within {
      transform: translateY(-2px);
      transition: transform 0.3s ease;
  }
  
  .auth-link-box {
      padding: 1.5rem;
      background: white;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  
  .auth-required {
      color: #F94C16;
      margin-left: 0.25rem;
  }
  
  .auth-help {
      color: #718096;
      font-size: 0.85rem;
      margin-top: 0.35rem;
  }
  
  @media screen and (max-width: 768px) {
      .auth-column {
          margin-top: 50px !important;
          padding: 0 1.5rem !important;
      }
      
      .login-input,
      .register-input,
      .login-button,
      .register-button {
          font-size: 0.95rem;
      }
  }
  
  /* ==========================================
     ESTILOS PARA SIDEBAR/MENU LATERAL
     ========================================== */
  
  .layout-with-sidebar {
    display: flex;
    min-height: calc(100vh - 60px);
    padding-top: 3rem;
  }
  
  .layout-with-sidebar .main-content-sidebar {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
  }
  
  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background: white;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 900;
    padding: 1.5rem 0;
  }
  
  .nav-heading {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 0.5px;
    margin-top: 1rem;
  }
  
  .sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .sidebar-nav li {
    margin: 0;
  }
  
  .sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
  }
  
  .sidebar-nav .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: #A0C03E;
  }
  
  .sidebar-nav .nav-link:hover {
    background: rgba(160, 192, 62, 0.1);
    color: #2d3748;
  }
  
  .sidebar-nav .nav-link.active {
    background: linear-gradient(90deg, rgba(160, 192, 62, 0.15) 0%, rgba(160, 192, 62, 0.05) 100%);
    color: #2d3748;
    border-left: 3px solid #A0C03E;
    font-weight: 600;
  }
  
  .submenu-toggle {
    justify-content: space-between;
    cursor: pointer;
  }
  
  .submenu-toggle .mdi-chevron-down {
    transition: transform 0.3s;
    margin-left: auto;
  }
  
  .submenu-toggle.active .mdi-chevron-down {
    transform: rotate(180deg);
  }
  
  .nav-content {
    display: none;
    background: #f7fafc;
    padding-left: 0;
    list-style: none;
    margin: 0;
  }
  
  .nav-content.is-active {
    display: block;
  }
  
  .nav-content .nav-link {
    padding-left: 3.5rem;
    font-size: 0.9rem;
  }
  
  .nav-content .nav-link i {
    font-size: 1rem;
    color: #4194A6;
  }
  
  .empresa-info {
    margin: 0 1rem 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #A0C03E 0%, #4194A6 100%);
    border-radius: 12px;
    color: white;
  }
  
  .empresa-info .title,
  .empresa-info .subtitle {
    color: white !important;
    margin-bottom: 0.5rem;
  }
  
  .empresa-info i {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #A0C03E 0%, #4194A6 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(160, 192, 62, 0.4);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s;
  }
  
  .menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(160, 192, 62, 0.6);
  }
  
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 899;
  }
  
  @media screen and (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
    }
  
    .sidebar.active {
        transform: translateX(0);
    }
  
    .layout-with-sidebar .main-content-sidebar {
        margin-left: 0;
    }
  
    .sidebar-overlay.active {
        display: block;
    }
  
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
  }