:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
}

/* Estilos para el sticky footer */
html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 70px;
    min-height: 100vh;
}

main {
    margin-bottom: 2rem;
}

.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Enlaces */
a {
    text-decoration: none;
}

/* Tarjetas */
.card {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 500;
}

/* Botones */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Forms */
.form-control, .form-select {
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* Alertas */
.alert {
    border-radius: 5px;
    border: none;
}

/* Navbar personalizada */
.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Efectos hover para las cards del dashboard */
.dashboard-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Estilos para el footer */
footer {
    background-color: var(--light-color);
    position: relative;
    margin-top: 2rem;
    padding: 1rem 0;
    color: var(--secondary-color);
}

/* Animaciones para loading */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.35rem 0.75rem;
    }
}

/* Estilos para la página de inicio */
.hero-section {
    padding: 4rem 0;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Estilos para la página de actividad */
.timeline-item {
    position: relative;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Estilos del Tablero Kanban */
.kanban-board {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
    height: calc(100vh - 180px);
}

.kanban-column {
    background-color: #f1f2f6;
    border-radius: 0.5rem;
    width: 300px;
    min-width: 300px;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.column-header {
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-tasks {
    padding: 0.75rem;
    overflow-y: auto;
    flex-grow: 1;
}

.kanban-task {
    background-color: white;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--primary-color);
}

.kanban-task:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.task-dragging {
    opacity: 0.7;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.task-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.task-annotations {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.annotation-item {
    background-color: #f8f9fa;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    border-left: 3px solid var(--secondary-color);
}

.annotation-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

/* Formularios */
.auth-form {
    max-width: 450px;
    margin: 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.board-card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.board-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Botones y acciones */
.btn-add-column {
    min-width: 300px;
    border: 2px dashed #ccc;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7f8c8d;
    height: 100px;
    transition: all 0.2s;
}

.btn-add-column:hover {
    background-color: #f1f2f6;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in;
}
