* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d2145 0%, #163366 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #0d2145 0%, #163366 100%);
    color: white;
    padding: 40px;
    text-align: center;
    border-bottom: 3px solid #79c41d;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.content {
    padding: 40px;
}

.mode-selector {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.mode-selector h2 {
    color: #333;
    margin-bottom: 20px;
}

.mode-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-mode {
    background: white;
    color: #0d2145;
    padding: 20px 40px;
    font-size: 1.2em;
    font-weight: 600;
    border: 3px solid #79c41d;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.btn-mode:hover {
    background: #79c41d;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(121, 196, 29, 0.4);
}

.btn-mode small {
    font-size: 0.8em;
    opacity: 0.8;
    display: block;
    margin-top: 5px;
}

.team-info-section, .team-selector-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.team-info-section label, .team-selector-section label {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    margin-top: 20px;
}

.team-info-section label:first-child, .team-selector-section label:first-child {
    margin-top: 0;
}

.team-info-section select,
.team-info-section input,
.team-selector-section select {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
    margin-bottom: 10px;
}

.team-info-section select:focus,
.team-info-section input:focus,
.team-selector-section select:focus {
    outline: none;
    border-color: #79c41d;
}

.info-box {
    background: #e8f5d0;
    border-left: 4px solid #79c41d;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-box p {
    color: #0d2145;
    font-size: 1em;
    line-height: 1.6;
}

.error-message {
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s;
}

.success-message {
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category {
    margin-bottom: 50px;
}

.category-title {
    background: linear-gradient(135deg, #0d2145 0%, #163366 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(13, 33, 69, 0.3);
    border-left: 5px solid #79c41d;
}

.question {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #00bada;
    transition: all 0.3s;
}

.question:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.question.unanswered {
    background: #ffe6e6;
    border-left: 4px solid #dc3545;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.question.unanswered .question-text {
    color: #dc3545;
    font-weight: 600;
}

.question-text {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    position: relative;
}

/* Info Boxes */
.kanban-info-box {
    background: linear-gradient(135deg, #f0fff4 0%, #e6f7ed 100%);
    border: 2px solid #38a169;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
}

.kanban-info-box h3 {
    color: #276749;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.kanban-info-box p {
    color: #555;
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 12px;
}

.jornada-info-box {
    background: linear-gradient(135deg, #e8f5d0 0%, #d6efc0 100%);
    border: 2px solid #79c41d;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
}

.jornada-info-box h3 {
    color: #0d2145;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.jornada-info-box p {
    color: #555;
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 12px;
}

.response-legend {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.response-legend h4 {
    color: #4a5568;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.response-legend ul {
    list-style: none;
    padding: 0;
}

.response-legend li {
    padding: 8px 0;
    font-size: 0.95em;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    min-width: 160px;
    text-align: center;
}

.tag-red {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.tag-orange {
    background: #ffedd5;
    color: #ea580c;
    border: 1px solid #fdba74;
}

.tag-yellow {
    background: #fef9c3;
    color: #ca8a04;
    border: 1px solid #fde047;
}

.tag-green {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.tag-blue {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

/* Tooltip Styles */
.tooltip-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    font-size: 18px;
    margin-left: 8px;
    cursor: help;
    vertical-align: middle;
}

.tooltip-box {
    position: fixed;
    padding: 12px 16px;
    background: #2d3748;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: normal;
    white-space: normal;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    z-index: 10000;
    line-height: 1.5;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.tooltip-box.visible {
    opacity: 1;
}

.options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option {
    flex: 1;
    min-width: 150px;
}

.option input[type="radio"] {
    display: none;
}

.option label {
    display: block;
    padding: 12px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.option input[type="radio"]:checked + label {
    background: #0d2145;
    color: white;
    border-color: #79c41d;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 33, 69, 0.25);
}

.option label:hover {
    border-color: #79c41d;
    background: #f0fadf;
    color: #0d2145;
}

.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.btn-submit {
    background: linear-gradient(135deg, #79c41d 0%, #00bada 100%);
    color: white;
    padding: 18px 60px;
    font-size: 1.3em;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(121, 196, 29, 0.4);
    margin: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 196, 29, 0.6);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-back {
    background: #6c757d;
    color: white;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #0d2145;
    font-size: 1.5em;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.dashboard-header {
    background: linear-gradient(135deg, #0d2145 0%, #163366 100%);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
    border-bottom: 4px solid #79c41d;
}

.dashboard-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.export-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-export {
    background: white;
    color: #0d2145;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-export:hover:not(:disabled) {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-export:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #79c41d;
}

.metric-card h3 {
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 3em;
    font-weight: 700;
    color: #0d2145;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1.1em;
    color: #999;
}

.maturity-level {
    background: linear-gradient(135deg, #79c41d 0%, #00bada 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.maturity-level h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.maturity-level .level {
    font-size: 3em;
    font-weight: 700;
    margin: 20px 0;
}

.maturity-level .description {
    font-size: 1.2em;
    opacity: 0.95;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.chart-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.recommendations {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.recommendations h3 {
    color: #856404;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.recommendations ul {
    list-style-position: inside;
    color: #856404;
}

.recommendations li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.evaluators-list {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.evaluators-list h3 {
    color: #1565C0;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.evaluators-list ul {
    list-style-position: inside;
    color: #1565C0;
}

.evaluators-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.history-timeline {
    margin: 40px 0;
}

.timeline-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-left: 5px solid #79c41d;
}

.timeline-item h4 {
    color: #0d2145;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.timeline-item .date {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #79c41d;
    transition: all 0.3s;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.team-card h4 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.team-card .team-score {
    font-size: 2.5em;
    font-weight: 700;
    color: #0d2145;
    margin: 15px 0;
}

.team-card .team-info {
    color: #666;
    font-size: 0.9em;
}

/* Seletor de Tipo de Avaliação */
.evaluation-type-selector {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.evaluation-type-selector h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.type-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-type {
    background: white;
    color: #0d2145;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: 3px solid #79c41d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.btn-type:hover {
    background: #f0fadf;
    transform: translateY(-2px);
}

.btn-type.active {
    background: #0d2145;
    color: white;
    border-color: #0d2145;
    box-shadow: 0 4px 15px rgba(13, 33, 69, 0.4);
}

.btn-type small {
    font-size: 0.75em;
    opacity: 0.9;
    display: block;
    margin-top: 3px;
}

@media print {
    body {
        background: white;
    }
    .export-buttons, .btn-back, .btn-submit {
        display: none;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .options {
        flex-direction: column;
    }

    .option {
        min-width: 100%;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .export-buttons, .mode-buttons, .type-buttons {
        flex-direction: column;
    }

    .btn-mode, .btn-type {
        width: 100%;
    }
}

/* ==================== ÁREA ADMIN ==================== */

.admin-login {
    max-width: 500px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.admin-tab:hover {
    color: #79c41d;
}

.admin-tab.active {
    color: #0d2145;
    border-bottom-color: #79c41d;
}

.admin-tab-content {
    animation: fadeIn 0.3s;
}

.settings-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    max-width: 480px;
}

.settings-section h3 {
    color: #0d2145;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.admin-actions {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-delete-small {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.btn-delete-small:hover {
    background: #c82333;
}

.admin-evaluations-table {
    overflow-x: auto;
    margin-top: 20px;
}

.admin-evaluations-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.admin-evaluations-table th,
.admin-evaluations-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.admin-evaluations-table th {
    background: linear-gradient(135deg, #0d2145 0%, #163366 100%);
    color: white;
    font-weight: 600;
}

.admin-evaluations-table tr:hover {
    background: #f8f9fa;
}

.admin-evaluations-table tr:last-child td {
    border-bottom: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #0d2145 0%, #163366 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(13, 33, 69, 0.3);
    transition: transform 0.3s;
    border-bottom: 3px solid #79c41d;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FIM ÁREA ADMIN ==================== */
