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

/* Soft glow behind the underline */
.nav a::before,
.header .nav a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(closest-side, rgba(66,133,244,0.45), rgba(66,133,244,0) 70%);
    filter: blur(6px);
    opacity: 0.8;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
    z-index: 4;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('Panel_background.jpg');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 40px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    background: none !important;
    border: none !important;
    color: #222;
    padding: 0.5rem 0.7rem 0.8rem; /* extra bottom space for underline */
    border-radius: 0;
    font-size: 0.92rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-top: 0.5rem;
    position: relative; /* for underline */
    overflow: visible;
}

.nav a:hover {
    color: #4285F4;
    background: none;
    transform: none;
    box-shadow: none;
}

/* Fallback visible underline using inset shadow */
.nav a.active,
.nav a:active {
    box-shadow: inset 0 -3px 0 0 rgba(66,133,244,0.9);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    text-decoration-color: #4285F4;
}

/* Cool animated underline for header nav */
.nav a::after,
.header .nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0; /* inside the link box for guaranteed visibility */
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4285F4, #2b5cb0, #0d47a1, #2b5cb0, #4285F4);
    background-size: 200% 100%;
    box-shadow: 0 6px 16px rgba(66,133,244,0.35);
    opacity: 0.95;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
    z-index: 5;
}

.nav a:active::after,
.nav a.active::after,
.header .nav a:active::after,
.header .nav a.active::after {
    transform: translateX(-50%) scaleX(1);
    animation: underlineFlow 1.2s linear infinite;
}

.nav a:active::before,
.nav a.active::before,
.header .nav a:active::before,
.header .nav a.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Remove hover lift; underline only on click/active */

@keyframes underlineFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    margin-top: 80px;
    text-align: left;
    min-height: calc(100vh - 80px);
    max-width: 1200px;
    margin-left: 2rem;
}

.title-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111;
    text-shadow: none;
}

.title-section p {
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 2rem;
}

.search-container {
    position: fixed;
    top: 220px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.search-box {
    width: 100%;
    max-width: 600px;
    display: flex;
    margin: 2rem auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.search-box input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
    border-radius: 0;
    background: #fff;
    color: #222;
}

.search-btn {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 0;
}

.search-btn:hover {
    background-color: #3367d6;
}

.title-section p {
    font-size: 1.2rem;
}

.nav {
    gap: 1rem;
}

.logo-container img {
    height: 30px;
}

.search-box {
    width: 90%;
}

/* Login page styles moved from login.html */
.login-form-container {
    position: absolute;
    top: 220px;
    right: 5vw;
    width: 280px;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 1rem 1.2rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 10;
    font-size: 0.92rem;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    transform: translateX(0);
}
.login-form-container h2 {
    margin-bottom: 1.2rem;
    color: #111;
    text-align: center;
    font-size: 1.1rem;
}
.login-form-container label {
    margin-bottom: 0.3rem;
    color: #222;
    font-weight: 600;
    font-size: 0.92rem;
}
.input-icon {
    position: absolute;
    left: 8px;
    top: 52%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.2s;
}
.hide-icon {
    opacity: 0;
}
.less-padding {
    padding-left: 1.1rem !important;
}
.login-form-container input[type="text"],
.login-form-container input[type="password"] {
    padding: 0.5rem 2.2rem 0.5rem 2.2rem;
    margin-bottom: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 16px;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
}
.login-form-container input[type="text"]::placeholder,
.login-form-container input[type="password"]::placeholder {
    font-size: 0.8em;
    color: #888;
    padding-left: 0em;
}
.toggle-password-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    height: 24px;
    color: #666;
    transition: color 0.2s;
}
.toggle-password-btn:hover {
    color: #4285F4;
}
.login-form-container button {
    background: #4285F4;
    color: #111;
    border: none;
    padding: 0.5rem 0.7rem;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.login-form-container button:hover {
    background: #3367d6;
}
.login-form-container .back-link {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    color: #4285F4;
    text-decoration: none;
    font-size: 0.95rem;
}
.login-form-container .back-link:hover {
    text-decoration: underline;
}
.forgot-link {
    margin-bottom: 0.7rem;
    margin-top: 0.2rem;
    text-align: left !important;
    color: #4285F4;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}
.forgot-link:hover {
    color: #3367d6;
    text-decoration: underline;
    transform: translateX(5px);
}
.login-form-container .button-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.login-form-container .button-row button {
    flex: 1;
    margin-top: 0;
    background: #4285F4;
    color: #111;
    border: none;
    border-radius: 16px;
    font-weight: 600;
}
.login-form-container .button-row button:last-child {
    background: #28a745 !important;
    color: #111 !important;
}
.login-form-container select {
    padding: 0.5rem 2.2rem 0.5rem 2.2rem;
    margin-bottom: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 16px;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.login-form-container select:focus {
    outline: none;
    border-color: #4285F4;
}

.login-form-container select option {
    padding: 0.5rem;
    font-size: 0.85rem;
    white-space: normal;
    word-wrap: break-word;
}

/* Add styles for security question icon toggle */
.login-form-container select:not(:focus) + .input-icon {
    opacity: 1;
}

.login-form-container select:focus + .input-icon {
    opacity: 0;
}

@media (max-width: 900px) {
    .login-form-container {
        position: static;
        margin: 2rem auto 0 auto;
        width: 95%;
    }
}

.cancel-btn {
    background: #ff1744 !important;
    color: #fff !important;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    transition: background 0.3s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255,23,68,0.10);
}
.cancel-btn:hover {
    background: #d50000 !important;
    box-shadow: 0 4px 16px rgba(213,0,0,0.18);
}

.register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 3000;
}

.register-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 0;
    width: 340px;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideDown 0.3s ease-out;
}

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

.register-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #4CAF50;
    padding: 0.8rem 1rem;
    border-bottom: none;
}

.register-modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.register-modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #ffffff;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: transform 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.register-modal-close:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.register-modal-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
}

.register-modal-congrats {
    background: #f8f9fa;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    border: 1px solid #e9ecef;
}

.register-modal-ok {
    background: #4CAF50;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(76,175,80,0.2);
}

.register-modal-ok:hover {
    background: #43A047;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76,175,80,0.3);
}

.register-modal-ok:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(76,175,80,0.2);
}

.login-form-container .wavelink-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-form-container .wavelink-text h1 {
    color: #4285F4;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.login-form-container .wavelink-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Page Styles */
.contact-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-item {
    margin-bottom: 2rem;
    text-align: center;
}

.info-item i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    background: #007bff;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #0056b3;
}

/* Services Page Styles */
.services-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.service-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Help Page Styles */
.help-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-help {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-help input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-help button {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0 1.5rem;
    cursor: pointer;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    color: #333;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.support-section {
    margin-top: 3rem;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.support-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.support-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.support-card p {
    color: #666;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
}

/* Success Modal Styles */
.success-modal {
    display: none;
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
}

.success-modal.show {
    display: flex;
    animation: slideDown 0.3s ease;
}

.success-modal-content {
    background: #e8f5e9;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
    width: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.success-icon {
    font-size: 1.5rem;
    color: #2e7d32;
}

.success-modal-content h3 {
    color: #1b5e20;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.success-modal-content p {
    color: #2e7d32;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.success-ok-btn {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 0.4rem 1.5rem;
    border-radius: 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.success-ok-btn:hover {
    background: #1b5e20;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.2);
}

.close-modal-btn {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #2e7d32;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.close-modal-btn:hover {
    background: rgba(46, 125, 50, 0.12);
    color: #1b5e20;
}

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

/* Page Transition Styles */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.page-transition.active {
    transform: translateY(0);
}

/* Update login form container for transition */
.login-form-container {
    position: absolute;
    top: 220px;
    right: 5vw;
    width: 280px;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 1rem 1.2rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 10;
    font-size: 0.92rem;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    transform: translateX(0);
}

.login-form-container.fade-out {
    opacity: 0;
    transform: translateX(20px);
}

/* Update forgot link for transition */
.forgot-link {
    margin-bottom: 0.7rem;
    margin-top: 0.2rem;
    text-align: left !important;
    color: #4285F4;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-link:hover {
    color: #3367d6;
    text-decoration: underline;
    transform: translateX(5px);
}