/* Estilos para la aplicación web */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: url('/static/fondo.png') center center / cover no-repeat fixed;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 0.9rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor principal de la aplicación */
.app-container {
    width: 100%;
    max-width: 1920px;
    height: calc(100vh - 2rem);
    background: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    position: relative;
}

/* Contenedor más pequeño para la página de login */
.app-container.login-container-app {
    max-width: 600px;
    height: auto;
    min-height: auto;
    max-height: calc(100vh - 2rem);
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: relative;
    width: 200px;
    height: 100%;
    background: #1e1e1e;
    border-right: 1px solid #2d2d2d;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container-sidebar {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img-sidebar {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-footer {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #2d2d2d;
    flex-shrink: 0;
}

.create-task-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
    padding: 0;
}

.create-task-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
}

.create-task-button:active {
    transform: scale(0.95);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(46, 125, 50, 0.1);
    color: #ffffff;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
    color: #4caf50;
    border-left: 3px solid #4caf50;
    box-shadow: inset 0 0 10px rgba(76, 175, 80, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #4caf50;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2;
}

.nav-text {
    font-size: 0.9rem;
}

.nav-item-logout {
    margin-top: auto;
    border-top: 1px solid #2d2d2d;
    padding-top: 1rem;
    color: #e74c3c;
}

.nav-item-logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #ff5252;
}

/* ========== MAIN WRAPPER ========== */
.main-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    background: #1e1e1e;
    border-bottom: 1px solid #2d2d2d;
    padding: 0.75rem 2rem 0.75rem 1rem;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    gap: 1rem;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container-header {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-header {
    position: absolute;
    left: 0.75rem;
    width: 18px;
    height: 18px;
    color: #888;
    pointer-events: none;
    z-index: 1;
}

.search-input-header {
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    padding-left: 2.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.2s ease;
}

.search-input-header::placeholder {
    color: #888;
}

.search-input-header:focus {
    outline: none;
    border-color: #4caf50;
    background: #252525;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 0 0 1px rgba(255, 152, 0, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.user-profile:hover {
    background: #2d2d2d;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50 0%, #ff9800 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.user-name {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-profile {
    position: relative;
}

.user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #252525;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
    animation: slideDownMenu 0.2s ease;
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #3d3d3d;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background: rgba(76, 175, 80, 0.15);
    color: #ffffff;
}

.user-menu-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.main-content {
    flex: 1;
    background: transparent;
    display: flex;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.content-container {
    width: 100%;
    max-width: 1400px;
    margin: 0.5rem;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 15px 15px 15px;
    position: relative;
    overflow: visible;
}

/* Actualizar colores para diseño oscuro */
h2, h3 {
    color: #ffffff;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: none;
    letter-spacing: -0.5px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: #2c3e50;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.navbar h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
}

.navbar h1 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a5f;
}

.nav-links {
    display: flex;
    gap: 0.3rem;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

.nav-links a:hover {
    background: #1e3a5f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 50%, #1e3a5f 100%);
}

.login-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 120px;
}

.login-bird {
    position: absolute;
    top: -95px;
    right: -100px;
    width: 240px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.login-box {
    background: #252525;
    padding: 1.25rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para login dentro del contenedor principal */
.content-container.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.content-container.login-page .login-box {
    margin: 0 auto;
}

.login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.login-logo {
    max-width: 120px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #b0b0b0;
    font-size: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #3d3d3d;
    border-radius: 4px;
    font-size: 1rem;
    background: #2d2d2d;
    color: #e0e0e0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
    background: #252525;
}

.form-group label {
    color: #e0e0e0;
}

/* Estilos para inputs y textareas en modales */
.modal-content input[type="text"],
.modal-content input[type="date"],
.modal-content textarea,
.modal-content select {
    transition: all 0.2s ease;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="date"]:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background: #252525;
}

/* Buttons */
.btn {
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.btn-google-calendar {
    background: white;
    color: #EA4335;
    border: 2px solid #EA4335;
    display: inline-flex;
    align-items: center;
}

.btn-google-calendar:hover {
    background: #EA4335;
    color: white;
}

.btn-google-calendar svg {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

.btn-solution {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c3e50 100%);
    color: white;
}

.btn-solution:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #1e3a5f 100%);
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #ff5252;
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 8px;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 8px;
}

/* Filters */
.filters {
    padding: 0.3rem 0.8rem;
    margin-bottom: 1rem;
    margin-top: 0;
    position: sticky;
    top: 80px;
    z-index: 1000;
    overflow: visible;
    background: transparent;
    backdrop-filter: blur(10px);
}

.filters-header {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
}

.filters-header .dock-container {
    margin: 0;
    padding: 0.2rem 0.4rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Menú circular tipo dock de macOS */
.dock-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1000;
    overflow: visible;
    flex-wrap: nowrap;
    background: #252525;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
}

/* Contenedor redondo para el logo a la izquierda */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #252525;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
    margin-right: 0.75rem;
    flex-shrink: 0;
    animation: rotateLogo 10s linear infinite;
}

@keyframes rotateLogo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    max-width: 50px;
}

.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.dock-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #2d2d2d;
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
    color: #e0e0e0;
}

.dock-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    font-weight: 500;
}

.dock-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.85);
}

.dock-button:hover .dock-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

.dock-button:hover {
    transform: translateY(-10px) scale(1.15);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(255, 152, 0, 0.2) 100%);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.dock-button:active {
    transform: translateY(-5px) scale(1.05);
}

.dock-button-primary {
    background: linear-gradient(135deg, #1e3a5f, #2c5f8f);
}

.dock-button-primary:hover {
    background: linear-gradient(135deg, #2c5f8f, #3d7fb8);
}

.dock-button-secondary {
    background: linear-gradient(135deg, #6c757d, #8e9ba8);
}

.dock-button-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.dock-button-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.dock-button-settings {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.dock-button-settings:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7a7b);
    transform: translateY(-5px) scale(1.1);
}

.dock-action .dock-button {
    text-decoration: none;
    color: white;
}

.dock-action .dock-button:hover {
    transform: translateY(-10px) scale(1.15);
}

.dock-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Menú desplegable */
.dock-menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) scale(0);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.4s,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.dock-item.active .dock-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) scale(1);
}

.dock-menu-content {
    background: #252525;
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Desplegable de categorías más ancho */
.dock-item[data-filter="category"] .dock-menu-content {
    min-width: 250px;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dock-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin: 0.25rem 0;
    color: #e0e0e0;
}

.dock-option:hover {
    background: rgba(76, 175, 80, 0.15);
    transform: translateX(5px);
}

.dock-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #1e3a5f;
}

.dock-option span {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 500;
}

.dock-date-input,
.dock-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #3d3d3d;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #2d2d2d;
    color: #e0e0e0;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dock-date-input:focus,
.dock-search-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background: #252525;
}

.dock-search-input {
    min-width: 250px;
}

/* Efecto de ondas al hacer clic */
.dock-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.dock-button:active::before {
    transform: scale(2);
    opacity: 0;
}

/* Cerrar menús al hacer clic fuera */
/* Los menús se superponen, no necesitamos ocultar el overflow */

.filter-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    align-items: center;
    overflow: visible;
    width: 100%;
}

.filter-form select,
.filter-form input[type="date"] {
    flex: 0 0 auto;
    min-width: 150px;
}

.filter-form .search-container {
    flex: 1 1 auto;
    min-width: 200px;
    position: relative;
}

.filter-form .search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    padding-left: 2.5rem;
    border: 2px solid #3d3d3d;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: #2d2d2d;
    color: #e0e0e0;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filter-form .search-input::placeholder {
    color: #888;
}

.filter-form .search-input:hover {
    border-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.filter-form .search-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    transform: translateY(-1px);
    background: #252525;
}

.filter-form .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.filter-form .logout-btn {
    flex: 0 0 auto;
    flex-shrink: 0;
}

.filter-form select,
.filter-form input[type="date"] {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 2px solid #3d3d3d;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: #2d2d2d;
    color: #e0e0e0;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filter-form select:hover,
.filter-form input[type="date"]:hover {
    border-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.filter-form select:focus,
.filter-form input[type="date"]:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    transform: translateY(-1px);
    background: #252525;
}

.filter-form input[type="date"] {
    min-width: 150px;
}

.filter-form .btn {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Botón de cerrar sesión circular */
.logout-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    border: 2px solid #c0392b;
    cursor: pointer;
}

.logout-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.logout-btn svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

/* Botón para plegar/desplegar sección */
.toggle-section-btn {
    background: #2d2d2d;
    border: 2px solid #3d3d3d;
    border-radius: 8px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.toggle-section-btn:hover {
    background: #3d3d3d;
    border-color: #4caf50;
    transform: scale(1.05);
}

.toggle-section-btn svg {
    stroke: #e0e0e0;
}

.toggle-section-btn svg {
    width: 20px;
    height: 20px;
}

/* Botón de clip para imágenes */
.image-clip-btn {
    background: rgba(30, 58, 95, 0.1);
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    color: #1e3a5f;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.image-clip-btn:hover {
    background: rgba(30, 58, 95, 0.2);
    border-color: rgba(30, 58, 95, 0.5);
    transform: scale(1.05);
}

/* Vista de calendario semanal */
.calendar-view-with-no-date {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
    position: relative;
}

.calendar-no-date-column {
    width: 100%;
    background: #252525;
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
    max-height: 400px;
    overflow-y: auto;
}

.calendar-no-date-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.calendar-no-date-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 3px solid #4caf50;
    transition: all 0.2s ease;
}

.calendar-no-date-content {
    cursor: pointer;
}

.calendar-no-date-item:hover {
    background: #2d2d2d;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* Tareas urgentes - Vista semanal sin fecha */
.calendar-no-date-item.task-urgent {
    border-left: 3px solid #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: blinkUrgent 1.5s ease-in-out infinite;
}

.calendar-no-date-item.task-urgent:hover {
    background: rgba(255, 68, 68, 0.15);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.calendar-task-actions {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.calendar-no-date-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
}

.calendar-no-date-client {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.calendar-no-date-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.calendar-view {
    width: 100%;
    position: relative;
}

.weekly-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    background: #252525;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
    position: relative;
    align-items: start;
}

.calendar-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(76, 175, 80, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    z-index: 10;
    flex-shrink: 0;
}

.calendar-arrow:hover {
    background: rgba(76, 175, 80, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.calendar-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.calendar-arrow:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.calendar-arrow-left {
    left: 0.25rem;
}

.calendar-arrow-right {
    right: 0.25rem;
}

.calendar-arrow-center {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(52, 152, 219, 0.9);
    font-size: 1rem;
    width: 40px;
    height: 40px;
    z-index: 1000;
    transform: none;
    border-radius: 8px;
}

.calendar-arrow-center:hover {
    background: rgba(52, 152, 219, 1);
}

.calendar-day {
    border-right: 1px solid #3d3d3d;
    min-height: 300px;
    padding: 0.4rem;
    background: #252525;
    position: relative;
}

.calendar-day:last-of-type {
    border-right: none;
}

.calendar-day-weekend {
    background: #2a2a2a;
    border-left: 3px solid rgba(76, 175, 80, 0.6);
}

.calendar-day-weekend .calendar-day-header {
    background: rgba(30, 58, 95, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid rgba(30, 58, 95, 0.5);
}

.calendar-day-weekend .calendar-day-header h4 {
    color: #1e3a5f;
    font-weight: 700;
}

.calendar-day-weekend .calendar-day-date {
    color: #2c3e50;
    font-weight: 600;
}

.calendar-day-weekend .calendar-task-item {
    background: rgba(220, 220, 240, 0.95);
    border-left-color: rgba(30, 58, 95, 0.7);
}

/* Estilos para drag and drop */
.task-card-slide[draggable="true"] {
    cursor: grab;
    user-select: none;
}

.task-card-slide[draggable="true"]:active {
    cursor: grabbing;
}

.calendar-no-date-item[draggable="true"] {
    cursor: grab;
    user-select: none;
}

.calendar-no-date-item[draggable="true"]:active {
    cursor: grabbing;
}

.calendar-no-date-item[draggable="true"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.calendar-day {
    transition: all 0.2s ease;
}

.calendar-day.drag-over {
    background: rgba(76, 175, 80, 0.15) !important;
    border: 2px dashed #4caf50 !important;
    border-radius: 8px;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.calendar-day-weekend.drag-over {
    background: rgba(30, 58, 95, 0.2) !important;
    border: 2px dashed #1e3a5f;
}

.drop-loading,
.drop-success,
.drop-error {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.drop-loading {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 2px solid #3498db;
}

.drop-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 2px solid #27ae60;
}

.drop-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-day-weekend .calendar-day-header h4 {
    color: #1e3a5f;
    font-weight: 700;
}

.calendar-day-weekend .calendar-day-date {
    color: #2c3e50;
    font-weight: 600;
}

.calendar-day-weekend .calendar-task-item {
    background: rgba(240, 240, 250, 0.9);
    border-left-color: rgba(30, 58, 95, 0.5);
}

.calendar-day-header {
    border-bottom: 2px solid #4caf50;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.calendar-day-header h4 {
    margin: 0 0 0.2rem 0;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.calendar-day-date {
    text-align: center;
    font-size: 0.75rem;
    color: #b0b0b0;
    font-weight: 500;
    margin-top: 0.2rem;
}

.calendar-day-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-task-item {
    background: #2d2d2d;
    border-left: 2px solid #4caf50;
    border-radius: 5px;
    padding: 0.4rem;
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
}

.calendar-task-content {
    cursor: pointer;
}

.calendar-task-item:hover {
    background: #3d3d3d;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

/* Tareas urgentes - Vista semanal con fecha */
.calendar-task-item.task-urgent {
    border-left: 2px solid #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: blinkUrgent 1.5s ease-in-out infinite;
}

.calendar-task-item.task-urgent:hover {
    background: rgba(255, 68, 68, 0.15);
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.4);
}

/* Botones de acción en tareas del calendario */
.calendar-task-actions {
    animation: slideDown 0.2s ease;
}

.calendar-task-actions .btn-action-icon {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-task-actions .btn-action-icon:hover {
    transform: scale(1.1);
}

.calendar-task-client {
    font-size: 0.75rem;
    color: #b0b0b0;
    margin-bottom: 0.25rem;
    font-style: italic;
}

.calendar-task-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.calendar-task-meta {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.calendar-task-meta .priority-badge,
.calendar-task-meta .category-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
}

/* Tasks Grid - Diseño moderno con cards */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
    align-items: start;
}

.task-card {
    background: #252525;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d2d2d;
    border-left: 3px solid #4caf50;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    height: auto;
    display: flex;
    flex-direction: column;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #4caf50 0%, #ff9800 100%);
    transition: width 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3), 0 0 0 1px rgba(255, 152, 0, 0.2);
    border-color: #4caf50;
    background: #2a2a2a;
}

.task-card:hover::before {
    width: 4px;
    background: linear-gradient(180deg, #4caf50 0%, #ff9800 100%);
}

/* Animación de parpadeo para tareas urgentes */
@keyframes blinkUrgent {
    0%, 100% {
        opacity: 1;
        border-color: #ff4444;
        box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
    }
    50% {
        opacity: 0.7;
        border-color: #ff6666;
        box-shadow: 0 4px 20px rgba(255, 68, 68, 0.6);
    }
}

/* Tareas urgentes - Vista de lista */
.task-card.task-urgent {
    border-left: 3px solid #ff4444;
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: blinkUrgent 1.5s ease-in-out infinite;
}

.task-card.task-urgent::before {
    background: linear-gradient(180deg, #ff4444 0%, #ff6666 100%);
}

.task-card.task-urgent:hover {
    border-color: #ff4444;
    box-shadow: 0 8px 30px rgba(255, 68, 68, 0.5), 0 0 0 1px rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.15);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #3d3d3d;
    position: relative;
}

.task-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-card-id {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    margin-left: 0.5rem;
}

.task-card-body {
    margin-bottom: 0.75rem;
    flex: 1; /* Permite que el cuerpo crezca según el contenido */
}

.task-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.task-card-client {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #81c784;
    font-weight: 500;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.task-card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: #2d2d2d;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.task-card-user {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: #2d2d2d;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #888;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #3d3d3d;
    gap: 0.4rem;
    margin-top: auto;
    position: relative;
}

.task-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    position: relative; /* Para que el dropdown se posicione correctamente */
    z-index: 1; /* Establecer stacking context */
}

/* Dropdown de acciones */
.dropdown-actions {
    position: relative;
    display: inline-block;
    z-index: 99999;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 99999;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    background: #252525;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
    min-width: 200px;
    z-index: 999999;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones de acción en fila */
.action-buttons-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #2d2d2d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    color: #e0e0e0;
}

.btn-action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    background: #3d3d3d;
}

.btn-action-icon:active {
    transform: translateY(0);
}

.btn-solution-icon:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
}

.btn-edit-icon {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.btn-edit-icon:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.btn-google-calendar-icon:hover {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.btn-success-icon:hover {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.btn-danger-icon:hover {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.btn-images-icon:hover {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

/* Tooltip mejorado */
.btn-action-icon[title] {
    position: relative;
}

.btn-action-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000000;
    pointer-events: none;
    animation: fadeInTooltip 0.2s ease;
}

.btn-action-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -1px;
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    z-index: 1000000;
    pointer-events: none;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    background: #252525;
    color: #e0e0e0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #2d2d2d;
    transform: none;
    box-shadow: none;
}

.dropdown-item.btn-danger {
    color: #e74c3c;
}

.dropdown-item.btn-danger:hover {
    background: #fee;
    color: #c0392b;
}

.dropdown-item.btn-success {
    color: #27ae60;
}

.dropdown-item.btn-success:hover {
    background: #efe;
    color: #229954;
}

.dropdown-item.btn-secondary {
    color: #6c757d;
}

.dropdown-item.btn-secondary:hover {
    background: #f8f9fa;
    color: #495057;
}

.dropdown-item.btn-solution {
    color: #1e3a5f;
}

.dropdown-item.btn-solution:hover {
    background: rgba(30, 58, 95, 0.1);
    color: #1e3a5f;
}

.dropdown-item.btn-google-calendar {
    color: #EA4335;
}

.dropdown-item.btn-google-calendar:hover {
    background: rgba(234, 67, 53, 0.1);
    color: #EA4335;
}

.dropdown-item form {
    margin: 0;
}

.dropdown-item svg {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Tables (mantener para compatibilidad) */
.table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: #1e3a5f;
    color: white;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(30, 58, 95, 0.05);
    transform: scale(1.01);
}

/* Badges */
.status-badge,
.priority-badge {
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-open {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.status-completed {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.status-pending_approval {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.status-cancelled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.priority-urgent {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.priority-high {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

.priority-normal {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.priority-low {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

/* Category badges */
.category-badge {
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Estilos para categorías - ahora se aplican dinámicamente desde la BD */
.category-badge {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

/* Mantener compatibilidad con categorías antiguas si existen */
.category-administracion {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.category-ideas {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.category-incidencias {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.category-reclamaciones {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

.category-presupuestos {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.category-visitas {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.category-en_espera {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.category-delegado {
    background: linear-gradient(135deg, #16a085 0%, #138d75 100%);
    color: white;
}

.category-llamar {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
}

.category-personal {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
}

/* Slider para tareas sin fecha */
.tasks-slider {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0 2.5rem;
}

.slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0.5rem 0;
}

.slider-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.task-card-slide {
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px;
    position: relative;
    z-index: 1;
}

.task-card-slide .task-card {
    padding: 0.75rem;
    font-size: 0.85rem;
    min-height: auto;
}

.task-card-slide .task-card-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.task-card-slide .task-card-title {
    font-size: 0.9rem;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-card-slide .task-card:has(.task-card-title:hover) {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 10;
    position: relative;
}

.task-card-slide .task-card-id {
    font-size: 0.7rem;
}

.task-card-slide .task-card-body {
    margin-bottom: 0.5rem;
}

.task-card-slide .task-card-meta {
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.task-card-slide .task-card-client,
.task-card-slide .task-card-date,
.task-card-slide .task-card-user {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.task-card-slide .task-ampliacion {
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.task-card-slide .task-ampliacion p {
    margin: 0.25rem 0 0 0 !important;
    font-size: 0.8rem !important;
}

.task-card-slide .task-solution {
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.task-card-slide .task-solution p {
    margin: 0.25rem 0 0 0 !important;
    font-size: 0.8rem !important;
}

.task-card-slide .task-card-footer {
    padding-top: 0.5rem;
    border-top-width: 1px;
}

.task-card-slide .task-card-actions {
    gap: 0.3rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #252525;
    border: 1px solid #3d3d3d;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    color: #4caf50;
    font-weight: bold;
}

.slider-btn:hover {
    background: #2d2d2d;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
    transform: translateY(-50%) scale(1.1);
    border-color: #4caf50;
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

/* Create Form */
.create-form {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.create-form h3 {
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-content {
    background-color: #252525;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
    overflow-y: auto;
    margin: auto;
    color: #e0e0e0;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.close:hover {
    color: #ffffff;
}

.close-large {
    font-size: 2.5rem;
    font-weight: 700;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    color: #888;
}

.close-large:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3);
}

/* Tasks List */
.tasks-list {
    background: transparent;
    padding: 0;
    position: relative;
    overflow: visible;
}

.no-date-section {
    position: relative;
    z-index: 1;
}

.with-date-section {
    position: relative;
    z-index: 0;
}

h2, h3 {
    color: #ffffff;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: none;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.empty-state {
    background: #252525;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    color: #888;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3d3d3d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========== ESTILOS MÓVILES ========== */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-title,
    .nav-text {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 0.75rem;
    }

    .main-wrapper {
        margin-left: 70px;
    }

    .main-header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .search-input-header {
        width: 100%;
    }

    .main-content {
        padding: 1rem;
    }

    /* Ajustes del contenedor del dock en móvil */
    .filter-form {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .dock-container {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.4rem 0.5rem;
    }

    /* Ocultar botones no deseados en móvil */
    .dock-item[data-filter="view_mode"],
    .dock-item[data-filter="status"],
    .dock-item[data-filter="user_id"],
    .dock-item[data-filter="task_date"] {
        display: none;
    }

    /* Ocultar el botón de editar categorías */
    .dock-item.dock-action a[href*="categories"],
    .dock-item.dock-action a[href*="categories"] ~ *,
    .dock-item.dock-action:has(a[href*="categories"]) {
        display: none !important;
    }

    /* Botones del dock más pequeños en móvil */
    .dock-button {
        width: 40px;
        height: 40px;
    }

    .dock-icon {
        font-size: 1.2rem;
    }

    /* Logo más pequeño en móvil */
    .logo-container {
        width: 44px;
        height: 44px;
    }

    .logo-img {
        height: 28px;
    }

    /* Menú desplegable ajustado para móvil */
    .dock-menu-content {
        min-width: 160px;
        max-width: calc(100vw - 40px);
        font-size: 0.85rem;
    }

    .dock-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Tooltip oculto en móvil */
    .dock-tooltip {
        display: none;
    }

    /* Ajustes del filtro sticky en móvil */
    .filters {
        padding: 0.5rem;
    }
}

/* Indicador de gestiones */
.gestiones-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    line-height: 1;
}

.gestiones-indicator.gestiones-viewed {
    background: #ffc107;
    color: #000;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
}

.gestiones-indicator.gestiones-new {
    background: #f44336;
    color: white;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Ajustes para el indicador en diferentes contenedores */
.calendar-no-date-content,
.calendar-task-content {
    position: relative;
}

