﻿/* Hela formuläret */

.evaluation-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-family: 'Montserrat', sans-serif;
}

    .evaluation-page h3 {
        margin-bottom: 25px;
        text-align: center;
    }

    .evaluation-page h4 {
        margin-top: 30px;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
    }
/*Klickbar info ruta*/

.info-box1 {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
    /* Info-ikon */

    .info-header::before {
        content: "ℹ️";
        font-size: 16px;
    }
    /* “klicka” */

    .info-header span {
        font-size: 12px;
        color: #555;
        font-weight: normal;
    }
/* Innehåll i info rutan */

.info-content {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}
/*Gul inforuta Max-två-fel*/

.info-box2 {
    position: fixed;
    top: 80px;
    right: 30px;
    background: #fff8e1;
    border: 2px solid #ffca28;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 9999;
    max-width: 220px;
}
/*Betygsskala info*/

.info-box {
    position: fixed;
    right: 30px;
    width: 220px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
}
/* Grön ruta (betygsskala) */

.info-box3 {
    top: 160px; /* placeras under info-box2 */
    background: #e8f5e9;
    border: 2px solid #66bb6a;
}
/* Varje rad i formuläret */

.evaluation-row {
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 10px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .evaluation-row label {
        font-weight: bold;
        text-align: center;
        width: 100%;
        font-size: 3;
    }

    .evaluation-row input, .evaluation-row textarea, .evaluation-row select {
        padding: 6px 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

    .evaluation-row textarea {
        min-height: 80px;
        resize: vertical;
    }

.moment-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    background: white;
    transition: 0.2s;
}

.moment-header {
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.moment-card:hover {
    background: #f9f9f9;
}
/* GRÖN när klar */

.moment-card.done {
    border-color: #2e7d32;
    background: #e8f5e9;
}
/* innehållet */

.moment-card .evaluation-row {
    padding: 10px 12px 15px 12px;
}
/* Rating (1-5 knappar) */ /*.rating { display: flex; gap: 10px; }*/

.rating input {
    display: none;
}

.rating label {
    display: inline-block;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #f5f5f5;
    font-weight: 500;
}

    .rating label:hover {
        background-color: #004D40;
        border-color: #004D40;
        color: #fff;
    }

.rating input:checked + label {
    background: #004D40;
    color: white;
    border-color: #2d6cdf;
}
/* Poängsammanställning */

.score-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f7f9fc;
    border-radius: 6px;
    border: 1px solid #e0e6f0;
}

    .score-summary p {
        margin: 4px 0;
        font-weight: 500;
    }

.rating {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.quick-comment-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-button {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #888;
    border-radius: 6px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s, border-color 0.2s;
    user-select: none;
}

    .quick-button:hover {
        background-color: #004D40;
        border-color: #004D40;
        color: #fff;
    }

    .quick-button.active {
        background-color: #004D40;
        color: #fff;
        border-color: #004D40;
    }
    /* klick-effekt */

    .quick-button:active {
        background-color: #00332a;
        border-color: #00332a;
    }

.moment-goals {
    display: block;
    background-color: #f5f5f5;
    border-left: 4px solid #004D40;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

    .moment-goals ul {
        margin-top: 4px;
        margin-bottom: 0;
        padding-left: 20px;
        line-height: 1.5;
    }

    .moment-goals strong {
        display: block;
        margin-top: 8px;
        margin-bottom: 4px;
        color: #004D40;
    }

    .moment-goals li::before {
        content: "•";
        color: #004D40;
        font-weight: bold;
        display: inline-block;
        width: 1em;
        margin-left: -1em;
    }

.approval-status {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    font-weight: bold;
    color: white;
    border-radius: 8px;
    transition: background-color 0.5s ease, transform 0.2s ease;
    font-size: 1.1rem;
}

    .approval-status .status-icon {
        margin-right: 8px;
        font-size: 1.3rem;
        transition: transform 0.3s ease;
    }

.approved {
    background-color: #4CAF50;
}

.not-approved {
    background-color: #F44336;
}

.approval-status:hover .status-icon {
    transform: scale(1.2);
}
/* Skillbars*/

.score-bars {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.score-bar label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.progress {
    width: 100%;
    background: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4caf50; /* grön färg för framsteg */
    width: 0%;
    transition: width 0.5s ease;
}
/* Spara-knapp! */

.save-button {
    display: block;
    margin: 25px auto;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: #004D40;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #00695C; /* lite ljusare grön */
}
/*Spara-ändå knapp*/

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
/* Själva rutan */

.modal-box {
    background: white;
    border-radius: 10px;
    width: 320px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.2s ease;
}
/* Header */

.modal-header {
    font-weight: 600;
    margin-bottom: 10px;
}
/* Text */

.modal-content {
    font-size: 14px;
    margin-bottom: 15px;
}
/* Knappar */

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-primary {
    background: #004D40;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
}

.btn-secondary {
    background: #e0e0e0;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
}

/*Meddelande om sparat dokument*/

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #e8f5e9;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 20px 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2e7d32;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}