/**
 * Estilos personalizados - Diseño inspirado en Notion/ClickUp
 * Paleta clara con bloques y bordes suaves
 */

:root {
    /* Paleta de colores clara */
    --color-primary: #800000;
    --color-primary-hover: #1b6ec2;
    --color-success: #00B87C;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-info: #3B82F6;
    
    /* Grises y neutros */
    --color-bg: #F7F8FA;
    --color-bg-secondary: #FFFFFF;
    --color-border: #E5E7EB;
    --color-text: #1F2937;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Bordes */
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-lg: 12px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.6;
}

/* Contenedor principal */
.app-container {
    display: flex;
    min-height: 100vh;
}

.fondo{
	background: var(--bs-card-cap-bg);
	margin-left: 0!important;
    margin-right: 0!important;
	padding: 0.5rem;
    border: 1px solid var(--color-border);
	border-radius: var(--border-radius-sm);
}

canvas#billedProjectsChart{
    /*height: 500px!important;*/
    width: 100%!important;
}

.sidebar-brand a{
    text-decoration: none;
    color: inherit;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s ease;
}

.sidebar-brand {
    padding: 0 20px 18px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.sidebar-brand h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
}

.sidebar-menu {
    list-style: none;
    padding: 0 12px;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu li.menu-item-with-action {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-menu li.menu-item-with-action > a:first-child {
    flex: 1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar-menu .menu-action-btn {
    padding: 8px 10px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.sidebar-menu .menu-action-btn:hover {
    background: var(--color-primary);
    color: white;
}

.sidebar-menu .menu-action-btn i {
    font-size: 12px;
}

.sidebar-menu a:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.sidebar-menu a.active {
    background: var(--color-primary);
    color: white;
}

.sidebar-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Icono de colapsar menú cambia cuando está colapsado */
.sidebar.collapsed .bi-layout-sidebar-inset-reverse:before {
    content: "\f4e7"; /* bi-layout-sidebar-inset */
}

/* Estilos para sidebar colapsado */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    display: none;
}

.sidebar.collapsed .sidebar-brand {
    flex-direction: column;
    align-items: center;
    padding: 0 10px 18px;
}

.sidebar.collapsed .sidebar-brand h3 {
    width: 100%;
    text-align: center;
}

.sidebar.collapsed .sidebar-brand h3 a {
    justify-content: center;
}

.sidebar.collapsed .sidebar-brand h3 a i {
    margin-right: 0;
}

.sidebar.collapsed .sidebar-collapse-btn {
    margin-top: 8px;
}

.sidebar.collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-menu {
    padding: 0 8px;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 10px 8px;
}

.sidebar.collapsed .sidebar-menu a i {
    margin-right: 0;
}

.sidebar.collapsed .menu-item-with-action {
    flex-direction: column;
    gap: 2px;
}

.sidebar.collapsed .menu-item-with-action > a:first-child {
    width: 100%;
}

.sidebar.collapsed .sidebar-action-btn {
    display: none;
}

/* Contenido principal */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 0;
    transition: margin-left 0.3s ease;
}

/* Ajustar main-content cuando sidebar está colapsado */
.app-container.sidebar-collapsed .main-content {
    margin-left: 70px;
}

/* Header superior */
.top-header {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

/* Botón hamburguesa */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s;
    line-height: 1;
}

.sidebar-toggle:hover {
    background-color: var(--color-bg);
}

/* Overlay para cerrar sidebar en móvil */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* User Menu Container */
.user-menu-container {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--color-text);
}

.user-menu:hover {
    background-color: var(--color-bg);
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.2;
}

.user-menu-icon {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: transform 0.2s;
}

.user-menu.active .user-menu-icon {
    transform: rotate(180deg);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.dropdown-item:hover {
    background-color: var(--color-bg);
}

.dropdown-item-danger:hover {
    background-color: #FEE2E2;
    color: var(--color-danger);
}

.dropdown-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 4px 0;
}

/* Contenido de página */
.page-content {
    padding: 32px;
    max-width: 100%;
}

/* Cards tipo Notion */
.card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
    padding: 0.5rem;
}

.card-header h2,
.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.card-body {
    padding: 0;
}

/* Botones estilo Notion */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: white;
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: #00a06d;
    color: white;
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: #E5E7EB;
    color: var(--color-text);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(35, 131, 226, 0.1);
}

.choices__inner{
    background-color: var(--color-bg-secondary);
    border-color: var(--color-border);
    border-radius: var(--border-radius-sm);
}
.choices[data-type*="select-one"] .choices__inner {
	padding-bottom: 0;
}

select.form-control,
.form-select {
    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='%236B7280' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
    transition: all 0.2s;
}

select.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(35, 131, 226, 0.1);
}
select.form-control:hover,
.form-select:hover {
    border-color: var(--color-text-secondary);
}

/* Estilos para que los selects normales se parezcan a Choices.js */
.form-select option {
    padding: 8px 12px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Tablas */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--color-bg);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-border);
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--color-bg);
}

/* Badges/Pills */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    line-height: 1;
}

.badge-primary { background: #DBEAFE; color: #1E40AF; }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-secondary { background: var(--color-bg); color: var(--color-text-secondary); }

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: block;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card-main {
    flex: 1;
    min-width: 0;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 2px;
}

.stat-card-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

.stat-card-breakdown {
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breakdown-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.breakdown-badge.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.breakdown-badge.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.breakdown-badge.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.breakdown-badge.badge-secondary {
    background: #F3F4F6;
    color: #4B5563;
}

.breakdown-badge.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

/* Alertas/Flash messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error,
.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* Auth pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0c3857;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    text-align: center;
}

.auth-card p {
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* Utilidades */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 12px; }

/* Layout de dos columnas para tarea y comentarios */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.col {
    padding-left: 10px;
    padding-right: 10px;
}

/* Estilos para comentarios */
#comments-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#comments-card .card-body {
    flex: 1;
    overflow: hidden;
}

#comments-list {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

#comments-list::-webkit-scrollbar {
    width: 8px;
}

#comments-list::-webkit-scrollbar-track {
    background: transparent;
}

#comments-list::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 4px;
}

#comments-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-text-muted);
}

.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background-color: var(--color-bg);
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: var(--border-radius-sm);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.comment-author i {
    font-size: 20px;
    color: var(--color-text-secondary);
}

.comment-author strong {
    color: var(--color-text);
}

.badge-sm {
    font-size: 10px;
    padding: 2px 6px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.comment-date {
    color: var(--color-text-muted);
}

.btn-delete-comment {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
}

.btn-delete-comment:hover {
    background-color: var(--color-danger);
    color: white;
}

.comment-body {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
}

#no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}

#no-comments i {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 992px) {
    /* Mostrar botón hamburguesa */
    .sidebar-toggle {
        display: block;
    }
    
    /* Sidebar oculto por defecto en móvil */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200;
        width: 280px;
        box-shadow: var(--shadow-lg);
    }
    
    /* Sidebar colapsado también debe tener ancho completo en móvil */
    .sidebar.collapsed {
        width: 280px;
    }
    
    /* Sidebar visible cuando tiene clase active */
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Contenido principal ocupa todo el ancho */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }
    
    /* Reducir padding del contenido */
    .page-content {
        padding: 16px;
    }
    
    .top-header {
        padding: 12px 16px;
    }
    
    .top-header h1 {
        font-size: 18px;
    }
    
    /* Stats grid en columnas más pequeñas */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    /* Tablas con scroll horizontal */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Botones más pequeños */
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn i {
        font-size: 14px;
    }
    
    /* Cards con menos padding */
    .card {
        padding: 16px;
    }
    
    .card-header {
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    
    /* User menu compacto */
    .user-menu {
        gap: 8px;
        padding: 6px 8px;
    }
    
    .user-info {
        display: none;
    }
    
    .user-menu-icon {
        display: none;
    }
    
    /* Formularios más compactos */
    .form-group {
        margin-bottom: 16px;
    }
    
    /* Badges más pequeños */
    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    /* Layout de comentarios en columna completa */
    .row {
        flex-direction: column;
    }
    
    .col {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    /* Ajustes para pantallas muy pequeñas */
    .sidebar {
        width: 85%;
        max-width: 280px;
    }
    
    .page-content {
        padding: 12px;
    }
    
    .top-header {
        padding: 10px 12px;
    }
    
    .top-header h1 {
        font-size: 15px;
    }
    
    .card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    /* Stats grid en una columna */
    #dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    #invoices-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    #invoices-stats .stats-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
    
    /* Formularios en columna completa */
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-control, .form-select {
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    /* Auth card más pequeño */
    .auth-card {
        padding: 24px 20px;
    }
    
    .auth-card h1 {
        font-size: 24px;
    }
    
    /* Botones de acción apilados */
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 8px;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Tablas más compactas */
    .table thead th {
        font-size: 11px;
        padding: 10px 8px;
    }
    
    .table tbody td {
        font-size: 13px;
        padding: 12px 8px;
    }
    
    /* User avatar más pequeño */
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    /* Dropdown más ancho en móvil */
    .user-dropdown {
        min-width: 200px;
        right: -8px;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* Alertas más compactas */
    .alert {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Sidebar brand más compacto */
    .sidebar-brand h3 {
        font-size: 20px;
    }
    
    .sidebar-menu a {
        font-size: 13px;
        padding: 8px 10px;
    }

    #tarea .d-flex.gap-2{
        flex-direction: inherit;
    }
    #tarea #taskStatusBtns.d-flex.gap-2{
        flex-direction: column;
    }
    #tarea #taskStatusBtns.d-flex.gap-2 .btn {
        min-height: 55px;
    }
    #tarea .row.fondo{
        flex-wrap: wrap;
        flex-direction: inherit;
        padding-bottom: 0;
    }
    #tarea .row.fondo .col-xs-6{
        flex: 1 1 calc(50% - 10px);
        padding-left: 5px;
        padding-right: 5px;
    }
}
