/* nav bar*/
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: #1f1f1f;
    color: white;
    display: flex;
    justify-content: center;;
    padding: 10px 20px;
    align-items: center;
    
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
}

.nav-links li {
    margin-right: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
}

.nav-links li a:hover {
    color: #00A9D7;
}

.nav-links li a.active {
    background-color: #00A9D7;
    border-radius: 20px;
    color: white;
    padding: 10px 20px;
}

/* Contact form styling */
.contact-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin: 10px 0 5px;
    font-size: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 25px;  
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;  
}

.contact-form textarea {
    resize: none;
    min-height: 150px;
    border-radius: 15px;  
}

.contact-form button {
    padding: 12px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 25px;  
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #218838;
}

/* Styles for the main header */
.main-header {
    background-color: #004080; 
    color: #ffffff;            
    text-align: center;
    padding: 20px;
}

.main-header h1 {
    font-size: 2em;
    margin: 0;
}

.main-header p {
    font-size: 1.2em;
    margin: 5px 0 0;
}

/* Soft Skills Assessment Styles */
.soft-skills-assessment {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    font-family: Arial, sans-serif;
}

.progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    transition: width 0.3s ease-in-out;
}

.question-container h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.options {
    margin-top: 20px;
}

.option {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.option:hover {
    background-color: #e0f7fa;
    border-color: #4caf50;
}

.option:focus {
    outline: none;
    border-color: #4caf50;
}

/*retry css*/

.result-buttons {
    margin-top: 20px;
    text-align: center;
}

.result-buttons button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.result-buttons button:hover {
    background-color: #0056b3;
}



 /* Category Card Styles */
 .categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}
.category-card {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.category-card:hover {
    transform: translateY(-10px);
}
.category-btn {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.category-btn:hover {
    background-color: #0056b3;
}
.back-btn {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
    margin-left: 15px;
}

/* Add to your CSS file */
.btn-logout {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #d32f2f;
}

.admin-dashboard {
    display: none; /* Hidden by default */
}

.auth-buttons {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.signup-btn {
    background-color: #00A9D7;
    color: white;
    border: 1px solid #00A9D7;
}

.signup-btn:hover {
    background-color: #008fb8;
    border-color: #008fb8;
}

.workshop-recommendations {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.workshop-recommendations h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.workshop-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.workshop-card:hover {
    transform: translateY(-2px);
}

.workshop-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.workshop-card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.view-workshop-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.view-workshop-btn:hover {
    background-color: #2563eb;
}

/* Logout Popup Styles */
.logout-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    text-align: center;
    z-index: 10000;
    min-width: 300px;
    border: 1px solid #e5e7eb;
}

.logout-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-popup-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.logout-popup-icon i {
    color: white;
    font-size: 24px;
}

.logout-popup-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.logout-popup-message {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.logout-popup-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logout-popup-button:hover {
    background: #2563eb;
}

/* Animation for popup */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.logout-popup {
    animation: fadeInUp 0.3s ease-out;
}

/* Responsive design */
@media (max-width: 480px) {
    .logout-popup {
        min-width: 280px;
        margin: 0 20px;
    }
}