﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}


/* Login and Register styles
-------------------------------------------------- */
.login-body {
    display: flex;
    justify-content: center;
}

.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #333;
}

.login-p {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out;
}

    .login-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    }

.login-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .login-button:hover {
        background-color: #0056b3;
    }

.login-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

    .login-footer a {
        color: #007bff;
        text-decoration: none;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

.login-alert {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

    .login-alert.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .login-alert.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }


/* Reports Styles
-------------------------------------------------- */
.reports-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: whitesmoke;
    color: black;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.reports-title {
    text-align: left;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.reports-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Filtros */
.reports-filters table {
    width: 100%;
    margin-bottom: 1rem;
    border-spacing: 0.5rem;
}

.reports-filters td {
    padding: 0.5rem;
}

.reports-filters select,
.reports-filters input[type="date"],
.reports-filters input[type="time"] {
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 250px;
}

.report-btn-container {
    display: flex;
    justify-content: flex-end;
}

.report-btn {
    background-color: #5e1ff0;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 12px 28px;
    text-align: center;
    font-size: 1rem;
}

    .report-btn:hover {
        background-color: #350B99;
    }

/* Tabla */
.reports-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

    .reports-table thead {
        background: #2c7be5;
        color: white;
    }

    .reports-table th {
        padding: 14px;
        text-align: left;
        font-weight: bold;
        background-color: #5e1ff0;
        color: white;
    }

    .reports-table td {
        padding: 8px;
        border: 1px solid #ddd;
    }

    .reports-table tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    .reports-table tr:hover {
        background-color: #ddd;
    }

/* Botón descargar */
.download-btn {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

    .download-btn:hover {
        background-color: #0056b3;
    }

/* Modal Agregar Estudiantes 
-------------------------------------------------- */
.file-upload-container {
    position: relative;
}

    .file-upload-container .plantilla-link {
        text-align: right;
        font-size: 0.9rem;
        padding: 2px 6px;
        color: #0d6efd;
    }

        .file-upload-container .plantilla-link:hover {
            text-decoration: underline;
        }


/* Dashboard Styles 
-------------------------------------------------- */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.dashboard-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* --- Ejercicios por actividad --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.activity-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 6px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

    .activity-card:hover {
        transform: translateY(-8px);
    }

.activity-count {
    font-size: 3rem;
    font-weight: bold;
    color: #2c7be5;
    margin-bottom: 8px;
}

.activity-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
}

.empty-container {
    margin: 20px 0;
    padding: 15px;
    text-align: center;
    font-size: 2rem;
    color: #666;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

/* --- Selects --- */
.dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 25px;
}

    .dashboard-filters h2 {
        font-size: 20px;
        margin: 0;
    }

    .dashboard-filters select {
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 1rem;
        min-width: 180px;
        background: #fff;
        cursor: pointer;
        transition: border 0.2s;
    }

        .dashboard-filters select:focus {
            border-color: #2c7be5;
            outline: none;
        }

    .dashboard-filters.left {
        justify-content: flex-start;
    }

/* --- Top 3 --- */
.top-table-container {
    margin-top: 25px;
    overflow-x: auto;
}

.top-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

    .top-table thead {
        background: #2c7be5;
        color: white;
    }

    .top-table th, .top-table td {
        padding: 12px 15px;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
    }

    .top-table tbody tr:hover {
        background: #EBF3FA;
    }