/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
.main-navbar {
    background-color: #ad1aca;
    padding: 12px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 20px;
}

.navbar-brand {
	font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.navbar-links {
	font-family: 'Playfair Display', serif;
    display: flex;
    gap: 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Section Styles */
.section {
    padding: 60px 0;
    display: none;
}

.section.active-section {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Module Selection */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.module-icon {
    font-size: 3rem;
    color: #ad1aca;
    margin-bottom: 20px;
}

.module-card .module-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.module-description {
    color: #666;
    margin-bottom: 25px;
    min-height: 50px;
}

.module-select-btn {
    background-color: #ad1aca;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-select-btn:hover {
    background-color: #6d1280;
    transform: translateY(-2px);
}

/* User Details Section */
.user-details-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.back-button {
    color: #666;
    cursor: pointer;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #ad1aca;
}

.user-details-header {
    text-align: center;
    margin-bottom: 30px;
}

.user-details-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.selected-module {
    color: #ad1aca;
    font-weight: 500;
}

.user-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ad1aca;
    box-shadow: 0 0 0 0.2rem rgba(173, 26, 202, 0.25);
}

.form-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 5px;
}

.start-quiz-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* Quiz Section */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.quiz-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

#question-counter {
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.progress-bar-container {
    width: 200px;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: #ad1aca;
    transition: width 0.3s ease;
}

.quiz-timer {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #666;
}

.question-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-header {
    margin-bottom: 30px;
}

.question-category {
    display: inline-block;
    background-color: #f8f9fa;
    color: #ad1aca;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.06rem;
    color: #333;
    line-height: 1.2;
	margin-top: 20px!important;
}

.options-container {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.option-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #ad1aca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.option-card.selected {
    border-color: #ad1aca;
    background-color: #f8f6fa;
}

.option-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ad1aca;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.option-text {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

/* Results Section */
.results-card {
    max-width: auto;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    align-items: center;
	justify-content: center; /* horizontal centering */
}

.results-header {
    margin-bottom: 40px;
}

.results-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.result-module {
    color: #ad1aca;
    font-weight: 500;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#ad1aca 0deg, #ad1aca var(--percentage), #e9ecef var(--percentage));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
}

.score-percentage {
    position: relative;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.score-details {
    text-align: left;
}

.score-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.result-message {
    font-size: 1.2rem;
    font-weight: 500;
}

.result-message.pass {
    color: #28a745;
}

.result-message.fail {
    color: #dc3545;
}

.certificate-container {
    margin: 40px 0;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.certificate-container h3 {
    color: #333;
    margin-bottom: 20px;
	text-align: center;
}

/* --- CSS για οριζόντια προβολή πιστοποιητικού --- */
.certificate-display {
    min-width: 1000px;
    height: 800px;
    max-width: 1000px;
    aspect-ratio: 4 / 3;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
	text-align: center;
	margin-left: auto;
    margin-right: auto;
}

.certificate-display iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.certificate-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
	margin: 20px 0 20px 0;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.eu-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.footer-logo-eu {
    max-width: 30%;
    height: auto;
    flex-shrink: 0;
}

.footer-text-eu {
    text-align: left;
    max-width: 70%;
}

.footer-text-eu p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.hidden-section {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .progress-bar-container {
        width: 100%;
    }
    
    .score-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .eu-logo-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-logo-eu {
        max-width: 120px;
    }
    
    .footer-text-eu {
        max-width: 100%;
        text-align: center;
    }
    
    .navbar-content {
        flex-wrap: wrap;
    }
    
    .navbar-toggle {
        display: block;
        order: 3;
    }
    
    .navbar-links {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .navbar-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: 10px 15px;
        background-color: rgba(255,255,255,0.1);
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }
    
    .user-details-card,
    .results-card {
        padding: 25px;
    }
    
    .certificate-actions,
    .results-actions {
        flex-direction: column;
    }
    
    .option-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .eu-logo-container {
        gap: 10px;
    }
    
    .footer-logo-eu {
        max-width: 30% !Important;
    }
    
    .footer-text-eu p {
        font-size: 0.85rem;
    }
}



hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    margin-left: 5%!important;
    margin-right: 5%!important;
}