/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #e0f2fe;
    min-height: 100vh;
}

/* Header */
header {
    background-color: white;
    color: #3b82f6;
    padding-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

header .logo {
    display: block;
    margin: 0 auto;
    height: 110px;
    width: auto;
}

/* Fallback pro případy, kdy SVG není dostupné */
header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    display: none; /* skryje h1 pokud používáš SVG */
}

/* Navigace */
nav {
    background-color: #3b82f6;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav li {
    display: inline;
}

.nav-item {
    background: none;
    border: none;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-item:active,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Formuláře */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
select.form-input {
    width: 100%;
    max-width: 600px;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    color: #374151;
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tlačítka */
.login-button,
button[type="submit"] {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.login-button:hover {
    background-color: #2563eb;
}

.login-button:active {
    transform: scale(0.98);
}

/* Info sekce pro landing page */
.info {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #3b82f6;
}

.info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.info p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.info p:last-child {
    margin-bottom: 0;
}

/* Login sekce */
.login {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login p {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

.login a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.login a:hover {
    text-decoration: underline;
}

/* Admin content */
#admin-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#admin-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

/* Seznamy */
.career-list,
#groups-list,
#members-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.career-list li,
#groups-list li,
#members-list li {
    padding: 0.75rem 1rem;
    background-color: #e0f2fe;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #3b82f6;
}

/* Historie testů */
.history-list {
    margin-top: 1.5rem;
}

.history-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.history-item:last-child {
    border-bottom: none;
}

.history-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.history-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ========================================
   RIASEC TEST - Původní formátování
   ======================================== */

/* Hlavní kontejner testu */
.container {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe 0%, #e8eaf6 100%);
    padding: 24px;
}

/* Hlavní karta testu */
.card {
    max-width: 1024px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 32px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nadpisy testu */
.title {
    font-size: 24px;
    font-weight: bold;
    color: #374151;
    margin: 0;
    text-align: center;
    margin-bottom: 24px;
}

.results-title {
    font-size: 28px;
    font-weight: bold;
    color: #374151;
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

/* Header sekce dotazníku */
.header-section {
    margin-bottom: 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.counter {
    font-size: 14px;
    color: #6b7280;
}

/* Indikátor sekce */
.section-indicator {
    margin-bottom: 16px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Sekce otázky */
.question-section {
    margin-bottom: 32px;
}

.question {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 24px;
}

/* Odpovědi */
.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-button {
    width: 100%;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: white;
}

.answer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.answer-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Barevné varianty odpovědí */
.answer-1 { background-color: #ef4444; }
.answer-2 { background-color: #fca5a5; }
.answer-3 { background-color: #d1d5db; }
.answer-4 { background-color: #6ee7b7; }
.answer-5 { background-color: #10b981; }

/* Instrukce */
.instruction {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* Výsledky */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

/* Graf sekce */
.chart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-container {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-chart {
    max-width: 100%;
    height: auto;
}

/* Výsledky sekce */
.results-section {
    display: flex;
    flex-direction: column;
}

/* Top typy */
.types-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.type-card {
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.type-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.type-score {
    color: #3b82f6;
    font-weight: bold;
    font-size: 16px;
}

.type-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Doporučení box */
.recommendation-box {
    padding: 16px;
    background-color: #dbeafe;
    border-radius: 8px;
    margin-bottom: 16px;
}

.recommendation-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.recommendation-text {
    font-size: 14px;
    color: #374151;
    margin: 0;
}

/* Kariéra box */
.career-box {
    padding: 16px;
    background-color: #dcfce7;
    border-radius: 8px;
}

.career-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.career-item {
    margin-bottom: 4px;
    font-size: 14px;
    color: #374151;
}

/* Reset sekce */
.reset-section {
    text-align: center;
}

.reset-button {
    padding: 12px 24px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.reset-button:hover {
    background-color: #2563eb;
}

.reset-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Hlavní grid pro sekce */
.main-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
}

.main-grid > section {
    flex: 1 1 0;
    min-width: 280px;
}

/* Responsivní zobrazení pro menší rozlišení */
@media (max-width: 768px) {
    .main-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .main-grid > section {
        min-width: 0;
    }
}

/* Responzivní design */
@media (max-width: 768px) {
    
    
    nav ul {
        padding: 0.5rem;
    }
    
    .nav-item {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    main {
        padding: 1.5rem 1rem;
    }
    
    .login {
        padding: 1.5rem;
    }
    
    .info {
        padding: 1.5rem;
    }

    /* RIASEC test responsive */
    .container {
        padding: 16px;
    }
    
    .card {
        padding: 24px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    header .logo {
        height: 80px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .results-title {
        font-size: 24px;
    }
    
    .question {
        font-size: 18px;
    }
    
    .chart-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    header .logo {
        height: 40px;
    }
    
    nav ul {
        gap: 0.25rem;
    }
    
    .nav-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    main {
        padding: 1rem 0.75rem;
    }
    
    .form-input {
        font-size: 0.875rem;
    }

    /* RIASEC test responsive */
    .container {
        padding: 12px;
    }
    
    .card {
        padding: 16px;
    }
    
    .answer-button {
        padding: 12px;
        font-size: 14px;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* Styly pro Labyrint možností - přidat do styles.css */

.labyrinth-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.labyrinth-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.labyrinth-card:active {
    transform: scale(0.98);
}

/* Animace pro zešednuti�� nevy braných karet */
@keyframes fadeToGrey {
    from {
        opacity: 1;
        filter: grayscale(0%);
    }
    to {
        opacity: 0.5;
        filter: grayscale(100%);
    }
}

.labyrinth-card.unselected {
    animation: fadeToGrey 0.3s ease forwards;
}

/* Responzivní design pro labyrinth */
@media (max-width: 768px) {
    .labyrinth-card {
        min-width: 150px;
    }
    
    .labyrinth-card h3 {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    #labyrinth-content > div {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Skills Module */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 100px;
    padding: 16px;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
}

.skill-item {
    padding: 8px 16px;
    background-color: #dbeafe;
    color: #374151;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: grab;
    user-select: none;
    transition: all 0.2s ease;
}

.skill-item:hover {
    background-color: #bfdbfe;
    transform: scale(1.05);
}

.skill-item:active {
    cursor: grabbing;
    opacity: 0.8;
}

.drop-zone {
    flex: 1;
    min-height: 200px;
    padding: 16px;
    background-color: #e0f2fe;
    border: 2px dashed #3b82f6;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.drop-zone.drag-over {
    background-color: #bfdbfe;
    border-color: #2563eb;
}

.drop-zone h3 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.drop-zones {
    display: flex;
    gap: 24px;
}

@media (max-width: 768px) {
    .drop-zones {
        flex-direction: column;
    }
}

/* Zabraň scrollu při touch drag */
.skills-container {
    touch-action: none;
}

/* Vizuální feedback při přetahování */
.skill-item.dragging {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}