/* General page styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
	padding-bottom: 70px;
}

h1 {
    font-size: 24px;
    text-align: center;
    margin-top: 20px;
}

/* Styles for the login page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.login-container h2 {
    text-align: center;
}

.login-container label {
    display: block;
    margin: 10px 0 5px;
}

.login-container input[type="text"], .login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* Submit button */
button[type="submit"], button[type="button"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover, button[type="button"]:hover {
    background-color: #45a049;
}


/* Position the welcome-banner at the bottom of the screen */
.welcome-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f1f1f1; /* Adjust if needed */
    padding: 1.10rem;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Optional: adds a shadow above the banner */
}

.welcome-user {
    font-size: 18px;
    font-weight: bold;
}

.logout-button {
    background-color: #ff4b5c;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

.logout-button:hover {
    background-color: #bf0f19;
}

/* Calendar input fields */
input[type="date"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.table-container {
	width: 95% !important;
    margin: 0 auto; /* Centers the table */
	margin-bottom: 80px;
}

/* Truncate and wrap long domain names in the table */
.table-container .domain-column {
    max-width: 200px; /* Adjust this value to set the desired maximum width */
    word-wrap: break-word;
    white-space: normal;
}

table.dataTable tbody tr:hover{
    background-color: #ffa;
}

tr.highlight, td.highlight {
    background-color: rgba(var(--dt-row-hover), 0.052) !important;
}

/* New styles for truncating and expanding sha256 values */ 
.truncate {
    cursor: pointer;
    display: inline-block;
}

.truncate .ellipsis {
    font-weight: bold; /* Make the ellipsis bold */
}

.expanded {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;   
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Add this CSS to your styles.css file */
#toggleRefreshContainer {
    padding-left: 45px; /* Adjust the value as needed */
    padding-bottom: 20px;
    display: none; /* Hide by default */
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
  }
  
/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 1.7 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 1.7s;
    animation: fadein 0.5s, fadeout 0.5s 1.7s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

.bold-highlight {
    background-color: #e0e0e0 ;
    font-weight: bold ;
}