/* USER WISE STYLING */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* 1. USER LOG IN AND SIGN IN STYLING */

body.login-sign-page {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #fff176, #ffeb3b);
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: white;
    padding: 25px 30px; 
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px;
    min-height: 300px; 
    animation: bounceIn 1.2s ease-in-out;
}

    @keyframes bounceIn {
     0% {
     transform: scale(0.95);
     opacity: 0;
    }
     50% {
     transform: scale(1.05);
     opacity: 0.5;
    }
     100% {
     transform: scale(1);
     opacity: 1;
    }
}

.login-container h1 {
     font-size: 28px;
     color: #333;
     font-weight: 700;
     margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left; /* Align labels to the left */
}

.form-group label {
    display: block;
    margin-bottom: 3px; /* Reduced space to bring label closer to input */
    color: #636e72; /* Label color */
    font-weight: bold;
}

.form-group input {
    width: 93%; /* Slightly reduced width for input fields */
    padding: 10px;
    border: 1px solid #dfe6e9; /* Border color */
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none; 
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3); /* Focus effect with box-shadow */
}

    .btn {
background-color: #ffeb3b;
color: black;
font-size: 16px;
padding: 12px 24px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
font-weight: bold;
text-transform: uppercase;
margin-top: 15px;
width: auto;
}

.btn:hover {
    background-color: #fbc02d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.6);
}

.btn:active {
    background-color: #f7eb5a;
    transform: translateY(2px);
}

.error-container, .success-container {
        margin-top: 10px;
        padding: 15px;
        color: #e53935; 
        font-size: 15px;
        font-weight: bold;
        border-radius: 4px;
        position: relative;
        margin-bottom: 20px;
        transition: opacity 0.3s ease;
        opacity: 1;
        animation: fadeIn 0.3s forwards;
}

.success-container {
        background-color: #c3e6cb;
        color: #2e7d32;
}

.error-container {
        background-color: #ffdddd;
        color: #e53935;
}

.error-container .close-btn, .success-container .close-btn {
        position: absolute;
        top: 12px;
        right: 10px;
        font-size: 20px;
        background: none;
        border: none;
        cursor: pointer;
        font-weight: bold;
}

.error-container .close-btn {
        color: #e53935;
}

.success-container .close-btn {
        color: #2e7d32;
}

.error-container .close-btn:hover, .success-container .close-btn:hover {
        transform: scale(1.2);
        transition: transform 0.3s ease;
}

    @keyframes fadeIn {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    @keyframes fadeOut {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }

.error-container.fade-out, .success-container.fade-out {
        animation: fadeOut 0.3s forwards;
}

.password-container {
        position: relative;
}

.password-container input {
        width: 83%;
        padding-right: 40px;
        font-size: 14px;
}

.eye-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 18px;
        color: #636e72;
        transition: color 0.3s;
}

.eye-icon:hover {
        color: #0984e3;
}

input.error-placeholder::placeholder {
font-weight: bold;
}

.error-input {
border-color: #f8bcbc; 
box-shadow: 0 0 8px rgba(248, 188, 188, 0.7); 
font-weight: bold; 
}

.error-placeholder::placeholder {
font-weight: bold;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    align-items: center;
    margin-bottom: -20px;
}








































/* 2. MAIN VPMS LOG CONVERTER STYLING */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #fff176, #ffeb3b);
    overflow-y: auto; 
}

.container {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
    max-width: 600px;
    height: auto;
    padding: 20px;
    margin-top: 90px;
    z-index: 1; /* Lower than navbar-collapse */ 
}

.card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    text-align: center;
    animation: bounceIn 1.2s ease-in-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.title {
    font-size: 28px;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.title i {
    margin-right: 8px; 
    font-size: 30px; 
    color: #000000; 
}

.description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.help-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    line-height: 1.5;
    font-style: italic;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.input-label i {
    margin-right: 10px;
    color: #66a6ff;
}

.file-input {
    border: 2px dashed #66a6ff;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    transition: border-color 0.3s, background-color 0.3s;
}

.file-input:hover {
    border-color: #89f7fe;
    background-color: rgba(102, 166, 255, 0.1);
}

.text-input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.text-input:focus {
    border-color: #66a6ff;
    outline: none;
    box-shadow: 0 0 8px rgba(102, 166, 255, 0.4);
}

.status-message {
    margin-top: 20px;
    font-size: 14px;
    color: #444;
    font-style: italic;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#dropArea {
    border: 2px dashed #ffeb3b; 
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    color: #000000; 
    background-color: #f9f9f9;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
}

#dropArea.drag-over {
    background-color: #fff176; 
    color: #000000;
    border-color: #fbc02d; 
}

#status {
    margin-top: 10px;
    color: red;
}
#userInput,
#vpmsVpmPathInput, 
#frequencyInput, 
#fileNameInput,
#input {
    margin: 10px 0;
}
#uploadedFileName {
    font-size: 14px; 
    margin-top: 10px; 
    margin-bottom: 25px; 
    color: #333; 
    font-weight: bold; 
    text-align: center; 
}

#statusContainer {
    margin-top: 39px; 
}

.message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 5px; 
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.5s forwards; 
}

.message.success {
    background-color: #c3e6cb;
    color: #155724;
    border: 1px solid #c3e6cb;
    font-weight: bold;
}

.message .close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: transform 0.2s ease, color 0.3s;
}

.message .close-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

#processButton {
    background-color: #ffeb3b; 
    color: black; 
    font-size: 16px;
    padding: 12px 24px; 
    border: none;
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    font-weight: bold; 
    text-transform: uppercase; 
    margin-top: 15px; 
    width: auto; 
}

#processButton:hover {
    background-color: #fbc02d; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

#processButton:focus {
    outline: none; 
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.6); 
}

#processButton:active {
    background-color: #f7eb5a; 
    transform: translateY(2px); 
}




.logOutButtonother {
    background-color: #ffeb3b; 
    color: black; 
    font-size: 16px;
    padding: 12px 24px; 
    border: none;
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    font-weight: bold; 
    text-transform: uppercase; 
    margin-top: 15px; 
    margin-bottom: 3px; 
    width: auto; 
}

.logOutButtonother:hover {
    background-color: #fbc02d; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

.logOutButtonother:focus {
    outline: none; 
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.6); 
}

.logOutButtonother:active {
    background-color: #f7eb5a; 
    transform: translateY(2px); 
}






#userFirstInputContainer { 
    text-align: left; 
}

#userInputContainer, #vpmsVpmPathInputContainer, #frequencyContainer, #vpmsVpmPathInputContainer {
    margin-bottom: 20px; 
    text-align: left; 
}

#fileNameInputContainer {
    margin-top: 28px; 
    margin-bottom: 5px;
}

#userFirstInputContainer label, #userInputContainer label, #vpmsVpmPathInputContainer label, #frequencyContainer label, #fileNameInputContainer label {
    display: block; 
    font-weight: bold; 
    font-size: 14px; 
    text-align: left; 
}

#userFirstInputContainer input, #userInputContainer input, #vpmsVpmPathInputContainer input, #frequencyContainer input, #fileNameInputContainer input {
    width: 100%; 
    padding: 10px; 
    font-size: 14px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    box-sizing: border-box; 
}

input[type="text"] {
    transition: outline 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #4CAF50; 
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3); 
}

input.error {
    outline: none;
    border-color: #F44336; 
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3); 
}

#buttonsContainer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -10px; 
    
}

#addButton,
#removeButton {
    margin-top: -10px; 
    width: 40px; 
    height: 40px; 
    border: none;
    border-radius: 50%;
    font-size: 18px; 
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#addButton {
    background: linear-gradient(45deg, #28a745, #34d058);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); 
}

#removeButton {
    background: linear-gradient(45deg, #d73a49, #e55360);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); 
}

#addButton:hover, #removeButton:hover {
    background-color: #45a049; 
    transform: scale(1.05); 
}

#addButton:active, #removeButton:active {
    transform: scale(0.95); 
    background-color: #3e8e41;
}

#errorContainer {
    display: none; 
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ff4d4f; 
    background-color: #f2f0ff; 
    color: #a8071a; 
    font-size: 14px; 
    font-weight: normal;
    border-radius: 4px;
    position: relative;
    margin-bottom: 20px;
}

#errorContainer span {
    font-weight: bold; 
    color: #b71c1c; 
}

#errorContainer .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold; 
    color: #b71c1c; 
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s;
}

#errorContainer .close-btn:hover {
    color: #d32f2f; 
    transform: scale(1.2); 
}

.error {
    color: #e53935;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #e53935;
    cursor: pointer;
    margin-left: 10px;
}

.fade-in {
    animation: fadeIn 0.5s;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.output-field {
    margin-bottom: 10px; 
}

#textFileContentContainer {
    display: none;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 30px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    scrollbar-width: thin; 
    scrollbar-color: transparent transparent; 
    transition: all 0.3s ease; 
}

#textFileContentContainer:hover {
    scrollbar-color: #7f9cf5 #f1f1f1; /
}#textFileContentContainer {
    display: none;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 30px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    scrollbar-width: thin; 
    scrollbar-color: transparent transparent; 
    transition: all 0.3s ease;
}

#textFileContentContainer:hover {
    scrollbar-color: #bbb #f1f1f1; 
}

#textFileContentContainer::-webkit-scrollbar {
    width: 10px; 
    opacity: 0; 
}

#textFileContentContainer::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}

#textFileContentContainer::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 10px;
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

#textFileContentContainer:hover::-webkit-scrollbar,
#textFileContentContainer:hover::-webkit-scrollbar-thumb {
    opacity: 1; 
}

/* Styling for the top bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    align-items: center;
    z-index: 10;
}

/* Center align remaining time */
#remainingTime {
    text-align: center;
    flex-grow: 1;
    font-size: 16px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 60px; /* Moves Time Remaining a bit down */
}

/* Style for the welcome message */
.welcome-message {
    font-family: 'Poppins', sans-serif;
    flex-grow: 1;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-left: auto;
    position: absolute;
    right: 50px;
    top: 0;
    left: unset;
}

#remainingTime .remaining-time-value {
    color: black;
}

/* Navigation Bar Styling */
.navbar {
    height: 70px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative; /* Required for absolute positioning of the welcome message */
}

/* Navbar Brand */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-left: 20px; /* Adjust value for fine-tuning */
}

/* Navigation Links - Centered */
.navbar-nav {
    display: flex;
    align-items: center;
}

/* Navigation Items - Oval Shape */
.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px; /* Oval width */
    height: 50px; /* Oval height */
    border-radius: 30px; /* Oval shape */
    background-color: #e3e3e3;
    transition: all 0.3s ease-in-out;
    margin: 5px 10px; /* Add spacing for mobile (top/bottom: 5px, left/right: 10px) */
}

/* Center the link inside the oval */
.nav-item .nav-link {
    font-weight: bold;
    color: #333;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

/* Hover Animation */
.nav-item:hover {
    background-color: #fbc02d; /* Changed from #007bff to #fbc02d */
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(251, 192, 45, 0.3); /* Updated shadow color to match #fbc02d */
}

/* Change Link Color on Hover */
.nav-item:hover .nav-link {
    color: #fff;
}

/* Navbar Text */
.navbar-text {
    font-size: 1rem;
    color: #555;
}

.navbar-brand img {
    height: 40px; /* Adjust as needed */
    padding: 5px; /* Optional: Add padding around the image */
    max-width: 100%; /* Ensure the image doesn't overflow */
}

/* Mobile-Specific Adjustments */
@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: column; /* Stack links vertically on mobile */
    }

    /* Ensure the navbar collapse is in front of other elements */
    .navbar-collapse {
        background-color: #ffffff; /* Ensure background matches navbar */
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        position: absolute; /* Position the collapse absolutely */
        top: 100%; /* Position it below the navbar */
        left: 0;
        right: 0;
        z-index: 1000; /* Ensure it's above other elements */
    }

    .navbar-text.d-lg-none {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 20%; /* Adjust this value to move it up or down */
        text-align: center;
        width: 50%;
        z-index: 1; /* Ensure it stays below the hamburger menu */
    }

    /* Ensure the hamburger menu is clickable */
    .navbar-toggler {
        z-index: 2; /* Higher than the welcome message */
        position: relative; /* Ensure z-index works */
    }

    .container {
        margin-top: 140px; /* Increased margin-top for mobile */
    }
        
    .top-bar {
        flex-direction: column !important;
        align-items: center !important;
    }
        
    /* Make the welcome message behave like remainingTime on mobile */
    .welcome-message {
        text-align: center !important;
        flex-grow: 1 !important;
        font-size: 20px !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        margin-bottom: 20px !important; /* Adds space between Welcome and Time Remaining */
    }
        
    /* Move the username a little to the left on mobile */
    .username {
        text-align: center !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 20px !important; /* Moves Time Remaining further down */
    }
        
    /* Center align the remaining time */
    #remainingTime {
        text-align: center !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 60px !important; /* Moves Time Remaining further down */
    }
        
    /* Ensure "Time Remaining:" and the actual remaining time are stacked vertically */
    #remainingTime strong {
        display: block !important;
    }
        
    /* Ensure the remaining time is on the next line in mobile */
    #remainingTime .remaining-time-value {
        display: block !important;
        margin-top: 5px !important; /* Adds space between the label and the value */
    }
}

/* Mobile-Specific Adjustments */
@media (max-width: 549px) {
    .navbar-nav {
        flex-direction: column; /* Stack links vertically on mobile */
    }

    /* Ensure the navbar collapse is in front of other elements */
    .navbar-collapse {
        background-color: #ffffff; /* Ensure background matches navbar */
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        position: absolute; /* Position the collapse absolutely */
        top: 100%; /* Position it below the navbar */
        left: 0;
        right: 0;
        z-index: 1000; /* Ensure it's above other elements */
    }

    /* Center the welcome message absolutely and move it up slightly */
    .navbar-text.d-lg-none {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 3%; /* Adjust this value to move it up or down */
        text-align: center;
        width: 50%;
        z-index: 1; /* Ensure it stays below the hamburger menu */
    }

    /* Ensure the hamburger menu is clickable */
    .navbar-toggler {
        z-index: 2; /* Higher than the welcome message */
        position: relative; /* Ensure z-index works */
    }

    .container {
        margin-top: 140px; /* Increased margin-top for mobile */
    }
        
    .top-bar {
        flex-direction: column !important;
        align-items: center !important;
    }
        
    /* Make the welcome message behave like remainingTime on mobile */
    .welcome-message {
        text-align: center !important;
        flex-grow: 1 !important;
        font-size: 20px !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        margin-bottom: 20px !important; /* Adds space between Welcome and Time Remaining */
    }
        
    /* Move the username a little to the left on mobile */
    .username {
        text-align: center !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 20px !important; /* Moves Time Remaining further down */
    }
        
    /* Center align the remaining time */
    #remainingTime {
        text-align: center !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 60px !important; /* Moves Time Remaining further down */
    }
        
    /* Ensure "Time Remaining:" and the actual remaining time are stacked vertically */
    #remainingTime strong {
        display: block !important;
    }
        
    /* Ensure the remaining time is on the next line in mobile */
    #remainingTime .remaining-time-value {
        display: block !important;
        margin-top: 5px !important; /* Adds space between the label and the value */
    }
}