/* GLOBAL STYLES */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F9FA;
    /* Soft White Background */
    color: #2C3E50;
    display: flex;
    flex-direction: column;
    min-height: 100vh;


}


/* Main container to push footer down */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

/* HEADER */
header {
    width: 100%;
    background: linear-gradient(to right, #4682B4, #87CEEB);
    text-align: center;
    padding: 10px 0;
    border-bottom: 3px solid #4682B4;
}

.logo img {
    /* font-size: 32px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0px 0px 8px #4682B4; */
    max-width: 150px;
}

/* FORM CONTAINER */
.form-container {
    text-align: center;
    padding: 30px;
    background: url("../images/home_form_bg.png") no-repeat center center/cover;
    width: 80%;
    box-shadow: 0 0 12px rgba(70, 130, 180, 0.3);
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid #4682B4;
}

/* INPUT FIELD */
.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

input {
    width: 60%;
    padding: 12px;
    border: 2px solid #87CEEB;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: #FFFFFF;
    color: #2C3E50;
    transition: 0.3s;
}

input:focus {
    border-color: #4682B4;
    box-shadow: 0 0 10px #4682B4;
}

/* BUTTON */
button {
    background: linear-gradient(to right, #4682B4, #87CEEB);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

button:hover {
    background: linear-gradient(to right, #87CEEB, #4682B4);
    box-shadow: 0 0 12px #4682B4;
}

/* OPTIONS SECTION */
.options {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Adds spacing between buttons */
    margin-top: 15px;
    align-items: center;
}

/* STYLE FOR INDIVIDUAL OPTION GROUP */
.option-group {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
    background: #E0E0E0;
    /* Light gray background */
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

/* RADIO BUTTON HIDE */
.option-group input {
    display: none;
    /* Hide the default radio button */
}

/* SELECTED OPTION */
.option-group input:checked+label {
    font-weight: bold;
    color: #0056b3;
    /* Highlight selected option */
}

/* ADDING ICONS */
.option-group label {
    font-weight: bold;
    color: #2C3E50;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ICON SIZE */
.option-group img {
    width: 18px;
    height: 18px;
}

/* HOVER EFFECT */
.option-group:hover {
    background: #d6d6d6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ACTIVE OPTION */
.option-group input:checked+label {
    color: #007BFF;
}

.progress-container {
    width: 85%;
    background: linear-gradient(to right, #e0e0e0, #f8f8f8);
    border-radius: 10px;
    position: relative;
    height: 10px;
    /* Smaller height */
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4caf50, #2ecc71);
    /* Modern gradient */
    border-radius: 10px;
    transition: width 0.4s ease-in-out;
    position: relative;
}

#progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    /* Smaller font */
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    /* White text */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    /* Slight text shadow */
}

/* Optional: Animated stripes */
.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.2) 10px,
            transparent 10px,
            transparent 20px);
    animation: moveStripes 1s linear infinite;
}

/* Animation for moving stripes */
@keyframes moveStripes {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 0;
    }
}

/* TABLE CONTAINER */
.table-container {
    text-align: center;
    padding: 30px;
    width: 80%;
    max-width: 2000px;
    background: white;
    box-shadow: 0 0 12px rgba(70, 130, 180, 0.3);
    border-radius: 1px;
    margin: 30px auto;
    border: 2px solid #4682B4;
    overflow: hidden;
    /* Prevents external scroll bars */
}

/* SCROLLABLE TABLE WRAPPER */
.table-wrapper {
    max-height: 400px;
    /* Scroll height */
    overflow-y: auto;
    /* Enables vertical scrolling */
    overflow-x: hidden;
    /* Prevents horizontal scroll */
    width: 100%;
    border-radius: 12px;
    position: relative;
}

.table-wrapper::-webkit-scrollbar {
    width: 8px;
    /* Adjust width */
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* Light grey track */
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #62A8E5;
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #62A8E5;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    border-radius: 12px;
    background: #FFFFFF;
    color: #2C3E50;
    border: 2px solid #4682B4;
}

/* FIXED HEADER */
thead tr {
    position: sticky;
    top: 0;
    background: linear-gradient(to right, #4682B4, #87CEEB);
    z-index: 2;
}

/* TABLE HEADERS */
th {
    background: linear-gradient(to right, #4682B4, #87CEEB);
    color: white;
    padding: 12px;
    text-transform: uppercase;
    border-bottom: 2px solid #4682B4;
    text-align: left;
}

td {
    word-wrap: break-word;
    /* Ensure words break properly */
    white-space: normal;
    /* Allow text to wrap */
    overflow-wrap: break-word;
    /* Break long words */
    max-width: 300px;
    /* Set a max-width so it doesn't overflow */
}

/* Prevent long links from breaking table */
td a {
    display: block;
    /* Ensures the link stays within the column */
    word-break: break-all;
    /* Breaks long links */
    overflow-wrap: anywhere;
    /* Allows breaking anywhere */
    text-overflow: ellipsis;
    /* Show '...' for extra-long links */
    max-width: 100%;
    /* Keep it within the column */
}


/* TABLE CELLS */
td {
    border: 1px solid #87CEEB;
    padding: 2px;
    text-align: center;
    font-size: small;
}

th {
    border: 1px solid #87CEEB;
    padding: 2px;
    text-align: center;
    font-size: small;
}

/* ALTERNATING ROW COLORS */
tbody tr:nth-child(even) {
    background-color: rgba(211, 211, 211, 0.6);
}

/* STATUS COLORS */
.link {
    text-align: left;
}

.working {
    color: #228B22;
    /* Forest Green */
    font-weight: bold;
}

.broken {
    color: #DC143C;
    /* Crimson Red */
    font-weight: bold;

}

/* FOOTER STYLES */
/* Ensure the footer is always at the bottom */
footer {
    width: 100%;
    background: linear-gradient(to right, #3B82B4, #62A8E5);
    text-align: center;
    padding: 15px 0;
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-top: 40px;
    /* Adds spacing between table and footer */
    position: relative;
}

.footer-container {
    width: 100%;
    background: linear-gradient(to right, #3B82B4, #62A8E5);
    text-align: center;
    padding: 15px 0;
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    bottom: 0;
}

/* Fixes the footer only when content is short */
@media (min-height: 800px) {
    .footer-container {
        position: absolute;
        bottom: 0;
        left: 0;
    }
}

body::-webkit-scrollbar {
    width: 5px;
}

body::-webkit-scrollbar-track {
    background: #fff;
}

body::-webkit-scrollbar-thumb {
    background-color: #004aad;
    border-radius: 20px;
}


/* Ensures text does not wrap and adds "..." for long links */
.one-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 1000px;
    display: inline-block;
    vertical-align: middle;
}