/* CSS styles for login page */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Light gray background color */
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.login-content {
    text-align: center;
    background-color: #ffffff; /* White background for the form container */
    padding: 80px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for better visibility */
}

.center-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 50px; /* Space between the image and the form */
    
}

.center-image-BU {
    max-width: 100%;
    height: auto;
    width: 250px; 
    position: fixed;
    bottom: 20px;
}



form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label, input[type="text"], input[type="password"], input[type="submit"] {
    width: 100%;
    margin-bottom: 10px;
}

input[type="text"], input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 30px;
}

input[type="submit"] {
    padding: 10px;
    background-color: #003a1f; /* Blue background color */
    color: #fff; /* White text color */
    border: none;
    border-radius: 5px; /* Rounded corners */
    cursor: pointer;
    width: 100px; 
}

input[type="submit"]:hover {
    background-color: #003a1f; /* Darker blue on hover */
}

button[type="signup"] {
    padding: 10px;
    background-color: #003a1f; /* Blue background color */
    color: #fff; /* White text color */
    border: none;
    border-radius: 5px; /* Rounded corners */
    cursor: pointer;
    width: 100px; 
}

button[type="signup"]:hover {
    background-color: #003a1f; /* Darker blue on hover */
}

/* CSS styles for signup modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.home-container {
    display: flex;
    height: 100vh;
    flex-wrap: wrap;
}

.sidebar {
    width: 250px;
    background-color: #bfdabc;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    background-color: #058549;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.sidebar button:hover {
    background-color: #058549;
}

.main-content {
    flex: 1;
    padding: 20px;
    width: 1200px;
    background-color: white;
}

.leaderboard-container {
    width: 100%;
    position: relative;
    text-align: center;
    padding: 10px;
}

.leaderboard-container h1 {
    margin-bottom: 20px;
}

.leaderboard-container table {
    width: 100%;
    height: 10vh;
    /* border-collapse: collapse; */
}

.leaderboard-container th, .leaderboard-container td {
    border: 1px solid #ddd;
    padding: 8px;
}

.leaderboard-container th {
    background-color: #f4f7f4;
    color: #131212;
    font-weight: bold;
}

.refresh-button {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    background-image: url('../static/refreshbtn.png');
    width: 24px; 
    height: 24px; 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 100px;
    right: 10px;
}

.table-container {
    overflow-x: auto;
    max-height: 680px;
    width:100%;
    margin: 20px 0;}

.network-topology-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.network-function:hover {
    background-color: #058549;
    color: white;
}

.network-function {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #058549;
    border-radius: 10px;
    background-color: white;
    color: #058549;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.network-function.active {
    background-color: #058549;
    color: white;
}
.network-function-details {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.network-function-details h2 {
    margin-top: 0;
}

.network-function-details ul {
    list-style-type: none;
    padding: 0;
}

.network-function-details ul li {
    background-color: #f5f5f5;
    padding: 5px;
    margin: 3px 0;
    border-radius: 3px;
}

.network-function-details label {
    display: flex;
    align-items: center;
}

.network-function-details input[type="checkbox"] {
    margin-right: 10px;
}

.second-row {
    margin-top: 20px; /* Adjust vertical spacing */
}

.challenge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0px;
    overflow: hidden;
    justify-content: center;
}

/* Base style for challenge boxes */
.challenge-box {
    background-color: #f4f4f4;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    width: 180px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Style for the image inside the challenge box */
.challenge-image {
    width: 180px;
    height: 100px;
    /* object-fit: cover; */
    object-fit: contain;
    margin-bottom: 5px;
}

.challenge-box.disabled {
  opacity: 0.5;            /* visually greyed out */
  pointer-events: none;    /* prevents hover/click interactions */
  cursor: default;
}

/* optional: ensure active still stands out */
.challenge-box.active {
  border: 2px solid #3182ce;
  /* ...other styles... */
}

.pulse-alert {
    color: red;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Style for the challenge name below the image */
.challenge-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

/* .challenge-box.active {
    background-color: #949694;
    border-color: #7d7e7d;
    color: #fff;
} */ */

/* Hover effect for challenge boxes */
.challenge-box:hover {
    background-color: #e2e2e2;
}

.vulnerability-description {
    flex: 1;
    padding-right: 200px;
    color: #555;
}
.container {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.vulnerability-description-container {
    flex: 1;
    padding: 20px;
    border-right: 2px solid #ddd;
    box-sizing: border-box;
}

.vulnerability-list-container {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    
}

.vulnerability-list {
    list-style-type: none;
    padding: 0;
    flex :1
}

.vulnerability-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    flex :1
}

.vulnerability-description {
    flex: 1;
    color: #555;
}

.vulnerability-checkbox {
    margin-right: 10px;
}

button[type="yaml"] {
    padding: 10px;
    background-color: #003a1f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100px; 
    position: fixed;
    bottom: 20px;
    left: calc(100% - 300px);
}

.ctf-container{

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

}

button[type="ctf"] {
    background: linear-gradient(45deg, #ff5733, #ffbd33);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    left: calc(100% - 200px);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
h1 {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    background: linear-gradient(45deg, #003a30, #33a3ff);
    padding-bottom: 30px;
    -webkit-background-clip: text;
    color: transparent;
}
h4 {

    padding-bottom: 0px;
}
h5 {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 20px 0;
    letter-spacing: 1px;
    line-height: 1.2;
    background: linear-gradient(45deg, #ff3333, #ff3333);
    padding-bottom: 30px;
    -webkit-background-clip: text;
    color: transparent;
}


.font {
    font-size: 1em; /* Adjust the size as needed */
    color: rgb(7, 103, 0);     /* Set text color to black */
    margin: 0;       /* Remove default margin */
    padding: 0;      /* Remove default padding */
}

.logout-container {
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    height: 55%
}

.database-selection {
    display: flex;
    gap: 10px; /* Adjust spacing between buttons */
}

button[type="db"] {
    padding: 0px;
    background-color: #779486; /* Blue background color */
    color: #fff; /* White text color */
    border: none;
    border-radius: 5px; /* Rounded corners */
    cursor: pointer;
    width: 150px; 
    height: 20px;
}


.database-selection button.active {
    background-color: #003a1f;
    color: white;
    border: 1px solid #003a1f;
}


.schedule-wrapper {
    display: flex;
    justify-content: center;
    padding: 2em;
}

.schedule-container {
    width: 100%;
    position: relative;
    text-align: center;
    padding: 10px;
}

.refresh-view {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    width: 100px; 
    height: 35px; 
    background-color: #4b6157e1;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 20px;
    right: 10px;
}


.table-title {
    text-align: center;
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 1em;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}

.styled-table th, .styled-table td {
    border: 1px solid #ccc;
    padding: 0.75em;
    text-align: center;
}

.styled-table thead {
    font-weight: bold;
}

.active-table thead {
    background-color: #b8eab8; 
}
.active-table tbody tr {
    background-color: #d9f9d9; 
}

.passive-table thead {
    background-color: #eab8b8; 
}
.passive-table tbody tr {
    background-color: #f9d9d9; 
}

.viewer-page {
    padding: 20px;
    font-family: sans-serif;
}

.vuln-box {
    border: 1px solid #ccc;
    padding: 10px;
    width: 60%;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.button-row {
    margin-bottom: 20px;
}

.button-row button {
    margin-right: 10px;
    padding: 8px 16px;
}

textarea {
    width: 60%;
    margin-top: 10px;
    resize: none;
}

.access-container {
    display: flex;
    gap: 10px; /* space between buttons */
}

.access-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #008cba;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.response-box textarea {
    width: 80%;
    min-height: 200px;
    resize: vertical;     
    overflow: auto;       
    white-space: pre-wrap; 
}

.nav-btn {
  display: block;
  width: 90%;

  padding: 10px;
  margin-bottom: 12px;   /* spacing between buttons */

  background-color: #016235;  /* ⭐ your exact green */
  color: #fff;

  border-radius: 5px;
  text-decoration: none;
  text-align: center;

  cursor: pointer;
  border: none;

  transition: background-color 0.2s ease, transform 0.05s ease;
}

button.nav-btn {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.nav-btn:hover {
  background-color: #005a30;   /* slightly lighter green */
}

.nav-btn:active {
  transform: scale(0.97);
}

.signup-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f6fa;
}

.signup-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.15);
}
.signup-content label {
    display: block;
    width: 50%;
    margin: 10px auto 4px auto;
}

.signup-content input.signup-input {
    width: 80%;
    max-width: 280px;
    display: block;

    margin-left: auto;
    margin-right: auto;
    margin-top: 6px;
    margin-bottom: 12px;

    padding: 10px;

    border-radius: 6px;
    border: 1px solid #ccc;

    font-size: 1rem;

    box-sizing: border-box;
}
.remove-btn {
    display: block;
    margin: 8px auto 16px auto;

    background-color: #ef4444;
    color: white;

    border: none;
    border-radius: 6px;

    padding: 8px 14px;
    font-size: 0.95rem;

    cursor: pointer;
}