/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}


/* Specific Styles for Login and Register Pages */
.login-register-body {
    background: antiquewhite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-register-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-register-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.login-register-container .error {
    color: #ff4d4d;
    font-size: 14px;
    margin-bottom: 15px;
}

.login-register-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-register-container input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins';
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-register-container input:focus {
    border-color: #6a11cb;
}

.login-register-container button {
    padding: 12px;
    background: #6a11cb;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-register-container button:hover {
    background: #2575fc;
}

.login-register-container p {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.login-register-container a {
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
}

.login-register-container a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .login-register-container {
        padding: 20px;
    }

    .login-register-container h2 {
        font-size: 22px;
    }

    .login-register-container input {
        padding: 10px;
        font-size: 13px;
    }

    .login-register-container button {
        padding: 10px;
        font-size: 14px;
    }

    .login-register-container p {
        font-size: 13px;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Bar */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 60px;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}


i.fas.fa-bars {
    font-size: 26px;
}

.navbar a {
    color: white;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #1abc9c;
}

.profile-dropdown {
    position: relative;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.profile-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    display: block;
    transition: background-color 0.3s ease;
}

.profile-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.profile-dropdown:hover .profile-dropdown-content {
    display: block;
}

/* Main Content */
.main-content {
    margin-top: 60px;
    padding: 30px;
}

/* Message Window */
.message-window {
    background-color: #fff;
    padding: 15px;
    border-left: 5px solid #1abc9c;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
    position: relative;
}

.message-window .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    transition: color 0.3s ease;
}

.message-window .close-btn:hover {
    color: #333;
}

.message-window a {
    color: #1abc9c;
    font-weight: 500;
    text-decoration: underline;
}

.message-window a:hover {
    color: #16a085;
}

/* Resume Templates Section */
.templates-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.templates-section h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.template-grid {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.template-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1 / 1.414;
    max-width: 230px;
    width: 100%;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.template-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover img {
    transform: scale(0.95);
}

.template-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex
;
    gap: 10px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
}

.template-card:hover .overlay {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.overlay-text {
    color: white;
    border: 1px white solid;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    background: rgb(0 0 0 / 90%);
    padding: 5px 10px;
    transition: background 0.3s ease;
}

.overlay-text:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    width: auto;
    border-radius: 5px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .template-card .overlay {
        opacity: 0;
        pointer-events: none; /* Disable button clicks initially */
    }

    .template-card.active .overlay {
        opacity: 1;
        pointer-events: auto; /* Enable button clicks when active */
    }

    .template-grid {
        justify-content: center;
    }
}

@media (max-width: 450px) {
    .template-grid {
        justify-content: center;
    }
}