/* Polices */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 1. Déclarer et charger la police sur votre site */
@font-face {
  font-family: 'Bradley Hand';
  src: url('/home/jpb/planner_prof/app/static/fonts/BRADHITC.TTF') format('truetype'); /* Ajustez le chemin vers votre fichier */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Permet un affichage immédiat avec une police système en attendant le chargement */
}

/* 2. L'appliquer au conteneur qui affiche le texte saisi */
.texte-activity {
  font-family: 'Bradley Hand', sans-serif;
}

/* Couleurs pastel */
:root {
    --pastel-blue: #a2d2ff;
    --pastel-green: #b5ead7;
    --pastel-pink: #ffb7b7;
    --pastel-yellow: #fdfd96;
    --pastel-purple: #e2f0cb;
    --pastel-peach: #ffdfd3;
}

.pastel-bg {
    background-color: var(--pastel-blue);
    color: #333;
    padding: 15px;
    border-radius: 8px;
}

.daily-header {
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-purple));
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: white;
}

.daily-body {
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.daily-footer {
    margin-top: 5px;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: black;
}

.tasks-section, .notes-section {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tasks-section {
    background-color: var(--pastel-peach);
}

.notes-section {
    background-color: var(--pastel-yellow);
}

/* Tableaux */
.table {
    background-color: white;
    margin-bottom: 20px;
}

.table th {
    background-color: var(--pastel-green);
    color: #333;
}

.table td, .table th {
    border: 1px solid #e0e0e0;
}

/* Boutons */
.btn-primary {
    background-color: #4a90e2;
    border-color: black;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: black;
}

/* Responsive */
@media (max-width: 768px) {
    .daily-footer {
        flex-direction: column;
    }
    .tasks-section, .notes-section {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Login page */
.login-page {
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-purple));
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    color: #4a90e2;
    text-align: center;
    margin-bottom: 20px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.flashes {
    margin-top: 15px;
    color: #dc3545;
    text-align: center;
}

/* Admin sections */
.admin-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.delete-row {
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 1;
}
.btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Impression */
@media print {
    .no-print {
        display: none !important;
    }
    .daily-page {
        page-break-after: always;
    }
    .daily-header {
        background-color: #f0f0f0 !important;
        color: #000 !important;
    }
    .tasks-section, .notes-section {
        background-color: #f9f9f9 !important;
    }
}

/* Calendrier mini dans le bandeau */

.mini-calendar-container {
    position: relative;
}

.month-navigation {
    width: 100%;
}

.month-navigation .btn {
    font-size: 1.2rem;
    padding: 0 10px;
    min-width: 40px;
    transition: transform 0.2s, background-color 0.2s;
}

.mini-calendar {
    font-size: 0.8rem;
    color: black;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px 10px;
    margin: 0 10px;
}

.mini-calendar .month-year {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.mini-calendar .weekdays {
    display: flex;
    justify-content: space-around;
    margin-bottom: 5px;
}

.mini-calendar .weekdays span {
    width: 20px;
    text-align: center;
    font-weight: bold;
}

.mini-calendar .days {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2px;
}

.mini-calendar .day {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: black;
    text-decoration: none;
}

.mini-calendar .day:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.month-navigation .btn:hover {
    transform: scale(1.1);
    background-color: rgba(175, 30, 30, 1);
}

.mini-calendar .day.selected {
    background-color: black;
    color: #a2d2ff;
    font-weight: bold;
}

/* Style pour TinyMCE */
.tox {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background-color: white !important;
}

/* Assure que l'éditeur s'adapte à la taille du texte */
.tox-editor-container {
    min-height: 100px !important;
    resize: vertical !important;  /* ✅ Permet de redimensionner verticalement */
}

/* Style pour les boutons de TinyMCE */
.tox-toolbar {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #ddd !important;
}

/* Style pour le contenu de l'éditeur */
.tox-editor-container .tox-content {
    min-height: 100px !important;
    padding: 8px !important;
}

/* Style pour le tableau de visualisation */
.table-responsive {
    max-height: 60vh;
    overflow-y: auto;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Style pour les activités avec mise en forme riche */
.activity-description {
    white-space: pre-wrap;
}
