/* Basic reset */
body, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

:root {
    /*========== Colors ==========*/
    --first-color: hsl(231, 44%, 56%);
    --first-color-alt: hsl(231, 44%, 51%);
    --text-color: hsl(231, 12%, 98%);
    --body-color: hsl(231, 100%, 94%);
}

.text-center {
    text-align: center;
}

/* Style the navigation menu */
nav {
    background-color: #462b54;
    overflow: hidden;
    max-width:100%;
    margin:0 auto;
}

nav ul {
    display: inline;
    float:right;
    justify-content: center;
}

nav ul li {
    float: left;
}

nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #1f1d3f;
}

/* Additional styles for the content */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

h1, h2 {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid black;
}

th, td {
    padding: 10px;
    text-align: left;
}
/* Login form styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    /* border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff; */
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #462b54;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #462989
}
/* Loading button animation */
@keyframes load {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1.75rem);
    }
}

.progress-container {
    position: relative;
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 15px;
    transition: width 0.3s ease;
    position: relative;
}

.trigger-task {
    position: relative;
    overflow: hidden;
}

.btn-txt {
    position: relative;
    z-index: 100;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.loading-btn {
    position: relative;
}

.loading-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;
    background: repeating-linear-gradient(60deg, transparent, transparent 0.75rem, var(--first-color-alt) 0.75rem, var(--first-color-alt) 1.5rem);
    animation: load 1s infinite linear;
}

.progress-bg-text {
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

button {
    background: #2a2a9d;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    background: #7b7ba6;
}

body {
    font-family: "Merienda", cursive;
    background: #eee;
}

.container {
    width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 2px 2px 8px #ccc;
    border: 1px solid #ccc;
}

.trheader td {
    font-weight: bold;
}

.tooltip-icon {
    font-family: "Merienda", cursive;
    font-size: 0.8em;
    color: #007BFF;
    border-radius: 50%;
    border: 1px solid #007BFF;
    padding: 0 5px;
    margin-left: 5px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.tooltip-icon:hover::after {
    content: attr(title);
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.tooltip-icon:hover::after {
    visibility: visible;
    opacity: 1;
}

.completed-btn {
    background-color: #28a745; /* Green for success */
    cursor: default;
}

.failed-btn {
    background-color: #dc3545; /* Red for failure */
    cursor: pointer; /* Allow re-triggering */
}