/* ============================================================================ */
/* BPLAN - MULTI-ASSESSMENT FIREBASE INTEGRATION */
/* ============================================================================ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 100px;
}

.logo-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.logo-header img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}

.logo-header img:hover {
    transform: scale(1.05);
}


#app {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}


/* =====================================================*/
/* LOGO HEADER STYLING */
/* =====================================================*/

.logo-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.logo-header img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo-header img:hover {
    transform: scale(1.05);
}

/* Espaço para a logo no topo */
body {
    padding-top: 100px;
}

/* ============================================================================ */
/* SCREENS */
/* ============================================================================ */


.screen {
    display: none;
    animation: fadeIn 0.3s ease-in;
}


.screen.active {
    display: block;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================================ */
/* LOGIN SCREEN */
/* ============================================================================ */


.login-container {
    padding: 60px 40px;
    text-align: center;
}


.login-container h1 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #667eea;
}


.form-group {
    margin-bottom: 20px;
    text-align: left;
}


.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}


.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}


.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}


/* ============================================================================ */
/* BTN */
/* ============================================================================ */


.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}


.btn-primary {
    background: #667eea;
    color: white;
}


.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


.btn-primary:active {
    transform: translateY(0);
}


.btn-secondary {
    background: #f0f0f0;
    color: #333;
}


.btn-secondary:hover {
    background: #e0e0e0;
}


.btn-success {
    background: #10b981;
    color: white;
}


.btn-success:hover {
    background: #059669;
}


.btn-logout {
    background: #ef4444;
    color: white;
    padding: 10px 20px;
    font-size: 12px;
    margin-top: 30px;
}


.btn-logout:hover {
    background: #dc2626;
}


/* ============================================================================ */
/* ERROR MESSAGES */
/* ============================================================================ */


.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #c33;
}


/* ============================================================================ */
/* QUICK LINKS */
/* ============================================================================ */


.quick-links {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}


.quick-links h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}


.quick-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}


.quick-links a {
    display: block;
    padding: 10px 15px;
    background: #f5f5f5;
    text-decoration: none;
    color: #667eea;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
}


.quick-links a:hover {
    background: #667eea;
    color: white;
}


/* ============================================================================ */
/* ASSESSMENT CLIENT SCREEN */
/* ============================================================================ */


.assessment-container {
    padding: 40px;
}


.assessment-container .header {
    margin-bottom: 40px;
}


.assessment-container h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}


/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}


.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
    border-radius: 10px;
}


#progressText {
    font-size: 13px;
    color: #999;
    text-align: right;
}


/* Questions */
#questionsContainer {
    margin-bottom: 30px;
}


.question-item {
    margin-bottom: 25px;
}


.question-item h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}


.question-item label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}


.question-item label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}


.question-item input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
}


.question-item input[type="radio"]:checked + span {
    font-weight: 600;
    color: #667eea;
}


/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}


.form-actions button {
    flex: 1;
}


#prevBtn,
#nextBtn {
    padding: 15px;
}


/* ============================================================================ */
/* FACILITATOR SCREEN */
/* ============================================================================ */


.facilitator-container {
    padding: 40px;
    background-color: #ffffff; /* Cor desejada */
    color: #ffffff; /* Ajuste o texto para ficar legível em fundo escuro */
}


.facilitator-container h1 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}


/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}


.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}


.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}


.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}


.tab-content.active {
    display: block;
}


/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}


.table thead {
    background: #f5f5f5;
}


.table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}


.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}


.table tr:hover {
    background: #f9f9f9;
}


/* ============================================================================ */
/* RESPONSIVO - LOGO ADJUSTMENTS */
/* ============================================================================ */


@media (max-width: 768px) {
    #app {
        max-width: 100%;
        border-radius: 0;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .login-container,
    .assessment-container,
    .facilitator-container {
        padding: 30px 20px;
    }


    .login-container h1,
    .assessment-container h1,
    .facilitator-container h1 {
        font-size: 20px;
    }


    .quick-links ul {
        grid-template-columns: 1fr;
    }


    .form-actions {
        flex-direction: column;
    }


    .form-actions button {
        width: 100%;
    }


    .tabs {
        flex-direction: column;
        border-bottom: none;
    }


    .tab-btn {
        border-bottom: 3px solid transparent;
        border-left: 3px solid transparent;
        margin-bottom: 0;
        margin-left: -3px;
    }


    .tab-btn.active {
        border-bottom-color: transparent;
        border-left-color: #667eea;
    }
}


@media (max-width: 480px) {
    .logo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .login-container,
    .assessment-container,
    .facilitator-container {
        padding: 20px 15px;
    }


    .btn {
        font-size: 13px;
        padding: 10px 20px;
    }


    .login-container h1 {
        font-size: 18px;
        margin-bottom: 30px;
    }


    .form-group select,
    .form-group input {
        font-size: 13px;
        padding: 10px 12px;
    }
}
