body {
  background-color: rgb(244, 245, 249);
  overflow-y: hidden;
  font-family: 'Poppins' !important;
}

.siteLayoutContent {
  min-height: 280px;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  height: 100vh;
}

.sider-logo {
  margin-left: 10px;
  padding: 10px;
}

.react-grid-layout .layout {
  overflow: auto;
}

.custom-table-row.ant-table-row-selected>.ant-table-cell {
  background-color: #ffdafe2b !important;
}

.custom-expanded-header {
  background-color: #A4A4A4 !important;
  color: #000 !important;
  font-weight: normal !important;
}

.react-grid-item.react-grid-placeholder {
  background-color: #82599a !important;
  border: 2px dashed #6904A5;
  border-radius: 5px;
}

/*BUTTONS*/
.create-btn {
  background: #ffffff78 !important;
  color: #009637 !important;
  border: 1px solid #009637;
  padding: 14px 20px;
  font-weight: 500;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
}

.create-btn:hover {
  background: #009637 !important;
  border: 1px solid #009637 !important;
  color: #fff !important;
  cursor: pointer;
}

.download-btn {
  background: #ffffff78 !important;
  color: #457bfa !important;
  border: 1px solid;
  padding: 14px 20px;
  font-weight: 500;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
}

.download-btn:hover {
  background: #457bfa !important;
  border: 1px solid #457bfa !important;
  color: #fff !important;
  cursor: pointer;
}

.edit-table-btn {
  background: none !important;
  color: #0958d9 !important;
  border: 1px solid #0958d9;
}

.edit-table-btn:hover {
  background: #0958d9 !important;
  color: #fff !important;
  border: 1px solid #0958d9 !important;
}

.delete-table-btn {
  background: none !important;
  color: #c92323 !important;
  border: 1px solid #c92323;
}

.delete-table-btn:hover {
  background: #c92323 !important;
  color: #fff !important;
  border: 1px solid #c92323 !important;
}

.item {
  border: 1px solid #d9d9d9;
  padding: 10px;
  border-radius: 5px;
  margin: 0 8px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: move;
  display: flex;
  align-items: center;
}

:hover.item {
  border: 1px solid #000000;
  padding: 10px;
  border-radius: 5px;
  margin: 0 8px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: move;
  display: flex;
  align-items: center;
}

.item-row {
  margin: 0 8px;
  text-align: center;
  color: #000000;
  display: flex;
  font-size: medium;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: #ffffff;
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-level-addremove {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;

}

.item-level-add {
  margin-left: 1px;
  padding: 8px 9px !important;
  text-align: center;
  font-size: large;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #6904A5;
  border-radius: 5px;
}

.item-level-remove {
  margin-left: 1px;
  text-align: center;
  padding: 8px 9px !important;
  font-size: large;
  border-radius: 5px;
  color: #6904A5;
  border: solid -1px #6904A5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;

}

:hover.item-level-add {
  background-color: #7833a0;
  cursor: pointer;
}

:hover.item-level-remove {
  background-color: #e0aaffbe;
  cursor: pointer;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-color {
  color: #6904a5 !important;
}

.rounded-30 {
  border-radius: 30px;
}

.color-gray {
  color: #A4A4A4;
}

.text-input {
  padding: 4px 11px !important;
  background-color: #f4f5f9;
  background-image: none;
  border-width: 1px;
  border-style: solid;
  border-color: #d9d9d9;
  border-radius: 5px;
}

.min-w-100 {
  min-width: 100px;
}

.ant-table-thead .ant-table-cell {
  background-color: #ebe5f9 !important;
  color: #5a189a !important;
}

.shadow-primary {
  box-shadow: 0 4px 8px 0 rgba(105, 4, 165, 0.4);
  transition: 0.3s;
}

.ant-tabs-tab-active {}

.ant-tabs-tab {
  background-color: #F9F9F9;
}

/* TABLE */
.bg-table {
  background-color: #efefef;
  border-bottom: 1px solid #d9d9d9 !important;
}

.bg-table-white {
  background-color: #ffffff;
  border-bottom: 1px solid #D9D9D9 !important;
}

/* WIZARD */
.dot {
  width: 7px;
  height: 7px;
  background-color: #d9d9d9;
  border-radius: 20px;
  margin-left: 5px;
  margin-right: 5px;
}

.dot-active {
  background-color: #6904a5 !important;
}

/* SETTING */
.setting-container {
  display: flex;
  flex-wrap: wrap;
}

.setting-column {
  padding: 10px;
}

.min-height-90 {
  min-height: 80%;
}

.max-height-90 {
  max-height: 80%;
}

.min-height-350 {
  min-height: 350px;
}

.max-height-350 {
  max-height: 350px;
}

.cursor-pointer {
  cursor: pointer;
}

/* COLLAPSE */
.ant-collapse-header {
  padding: 4px 11px !important;
  background-color: #f4f5f9;
  background-image: none;
  border-width: 1px;
  border-color: #d9d9d9;
  border-radius: 5px !important;
}

/* SELECT */
.custom-select-input .ant-select-selector {
  border-radius: 5px;
}

.btn-custom-select {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  padding: 0 11px;
  width: 100%;
  display: flex;
  height: 70px;
  border-radius: 20px;
}

/* HEADER */
.content-wrapper-start-to-center {
  display: flex;
  justify-content: flex-start;
}

.content-wrapper-end-to-center {
  display: flex;
  justify-content: flex-end;
}

/* SEARCH */
.search-input {
  border-radius: 20px;
  padding-left: 24px;
  padding-right: 24px;
  height: 35px;
}

/* ERROR */
.ant-form-item-explain {
  height: auto;
  opacity: 1;
  text-align: start;
}

/* Media query for mobile devices */
@media (max-width: 767px) {
  .flex-container {
    justify-content: flex-start;
  }

  .setting-column {
    flex-basis: 100%;
  }

  .content-wrapper-start-to-center,
  .content-wrapper-end-to-center {
    justify-content: center;
  }

  .ant-picker-panel-container {
    overflow-y: auto !important;
    max-height: 300px !important;
  }

  .ant-picker-panels {
    display: grid !important;
  }

  .card-movil-100 {
    width: 100%;
  }
}
/* Estilos personalizados para el dashboard */

/* Scroll suave para el contenedor principal */
.dashboard-container {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Estilos para la barra de scroll */
.dashboard-container::-webkit-scrollbar {
    width: 8px;
}

.dashboard-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dashboard-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dashboard-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mapa a pantalla completa */
.fullscreen-map {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Contenedor de ventanas flotantes */
.floating-windows {
    position: relative;
    width: 100%;
    height: 0;
    pointer-events: none;
}

/* Ventanas flotantes arrastrables */
.draggable-window {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    z-index: 1000;
    overflow: hidden;
    animation: slideInFromTop 0.3s ease-out;
    transition: all 0.2s ease;
}

.draggable-window.minimized {
    height: 40px !important;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.draggable-window.minimized:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Ventanas flotantes (mantener para compatibilidad) */
.floating-window {
    position: absolute;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    z-index: 1000;
    overflow: hidden;
    animation: slideInFromTop 0.3s ease-out;
}

/* Animación de entrada */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ventana de granjas más ancha */
.farms-window {
    width: 450px;
}

/* Posicionamiento de ventanas */
.farms-window {
    top: -520px;
    left: 20px;
}

.users-window {
    top: -520px;
    right: 20px;
}

.dashboard-widget {
    background: white;
    border-radius: 9px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-widget:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Efectos hover para ventanas flotantes */
.floating-window:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Estilos para widgets responsivos */
@media (max-width: 1200px) {
    .floating-window {
        width: 300px;
    }

    .farms-window {
        width: 400px;
        left: 10px;
    }

    .users-window {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .fullscreen-map {
        height: calc(100vh - 150px);
    }

    .floating-window {
        width: 280px;
        max-height: 400px;
    }

    .farms-window {
        width: 350px;
        top: -420px;
        left: 10px;
    }

    .users-window {
        top: -420px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .floating-window {
        width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
    }

    .farms-window {
        top: -420px;
    }

    .users-window {
        top: -420px;
    }
}

/* Estilos para los widgets internos */
.dashboard-widget .ant-card {
    height: 100%;
    border: none;
    box-shadow: none;
}

.dashboard-widget .ant-card-head {
    background: #fafafa;
    color: #262626;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 9px 9px 0 0;
}

.dashboard-widget .ant-card-head-title {
    color: #262626;
    font-weight: 600;
}

.dashboard-widget .ant-card-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Animaciones suaves */
@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Estilos para el mapa simulado */
.map-simulation {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    overflow: hidden;
}

.map-point {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-point:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Estilos para las estadísticas */
.statistic-card {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.statistic-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Estilos para las listas de notificaciones */
.notification-item {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.notification-item.unread {
    background-color: #f6ffed;
    border-left-color: #52c41a;
}

.notification-item:hover {
    background-color: #f0f0f0;
}

/* Estilos para los indicadores de estado */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-indicator.active {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-indicator.inactive {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.status-indicator.pending {
    background-color: #fffbe6;
    color: #faad14;
}

/* Estilos para las barras de progreso personalizadas */
.custom-progress {
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.custom-progress-bar {
    height: 4px;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Estilos para los avatares */
.avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: white;
}

/* Estilos para los botones de acción */
.action-button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: #f0f0f0;
}

/* Estilos para el header del dashboard */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 16px;
}

.dashboard-title {
    color: white;
    margin: 0;
    font-weight: 600;
}

.dashboard-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0 0 0;
    font-size: 14px;
}

/* Estilos para los handles de redimensionamiento */
.react-resizable-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    bottom: 0;
    right: 0;
    background: linear-gradient(-45deg, transparent 0%, transparent 30%, #ccc 30%, #ccc 40%, transparent 40%, transparent 70%, #ccc 70%, #ccc 80%, transparent 80%);
    cursor: se-resize;
    z-index: 1001;
}

.react-resizable-handle:hover {
    background: linear-gradient(-45deg, transparent 0%, transparent 30%, #999 30%, #999 40%, transparent 40%, transparent 70%, #999 70%, #999 80%, transparent 80%);
}

.react-resizable-handle::after {
    content: '';
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 5px;
    height: 5px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
}

/* Estilos para el header de ventanas arrastrables */
.window-header {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.window-header:hover {
    background-color: rgba(119, 0, 166, 0.08) !important;
}

/* Estilos para controles de ventana */
.window-controls {
    display: flex;
    gap: 4px;
}

.window-controls .MuiIconButton-root {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.window-controls .MuiIconButton-root:hover {
    transform: scale(1.1);
}

/* Estilos para ventanas maximizadas */
.draggable-window.maximized {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.draggable-window.maximized .window-header {
    border-radius: 0 !important;
}
