/* General Styles */
body {
    background-color: #202020; /* Set background to black */
    color: #ffffff; /* Set text color to white */
    font-family: Arial, sans-serif;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #1a1a1a; /* Dark gray background for the container */
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19); /* Add box shadow for 3D effect */
    border: 1px solid #333; /* Add a border for more definition */
    background-image: linear-gradient(145deg, #1a1a1a, #2a2a2a); /* Add a subtle gradient */
    position: relative; /* Ensure container is the reference for absolute positioning */
    overflow: hidden; /* Hide overflow to keep SVGs within bounds */
}

/* Header Styles */
.futuristic-header {
    text-align: center;
}

.glowing-text {
    font-size: 2em; /* Adjust font size */
    color: #00ffcc;
    text-shadow: 0 0 2px #00ffcc, 0 0 4px #00ffcc, 0 0 8px #00ffcc;
    animation: glow 1.5s infinite alternate, slideIn 2s ease-out;
}

@keyframes glow {
    from {
        text-shadow: 0 0 2px #00ffcc, 0 0 4px #00ffcc, 0 0 8px #00ffcc;
    }
    to {
        text-shadow: 0 0 4px #00ffcc, 0 0 8px #00ffcc, 0 0 16px #00ffcc;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Control Styles */
.form-control {
    background-color: #333333; /* Darker background for text areas */
    color: white;
    border: 1px solid #555555; /* Border color for text areas */
}

.form-control:focus {
    background-color: #636363; /* Keep the same background color when focused */
    color: white; /* Keep the text color white when focused */
    border-color: #555555; /* Keep the same border color when focused */
    outline: none; /* Remove the default outline */
}

#key {
    flex: 1; /* Allow the key input to take available space */
    max-width: calc(100% - 50px); /* Adjust width to account for control icons */
}

textarea {
    overflow-y: auto;
    resize: none;
    width: calc(100% - 20px); /* Adjust width to account for padding/margin */
    margin-bottom: 0; /* Remove bottom margin */
}

/* Control Icons Styles */
.control-icons {
    display: flex;
    align-items: center;
    gap: 13px; /* Add spacing between icons */
    margin-left: 10px; /* Add margin to the left of the control icons */
}

/* Icon Styles */
.icon {
    cursor: pointer;
    color: white;
}

.icon:hover {
    color: #ccc;
}

/* Button Styles */
.btn {
    margin: 5px;
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.95);
}

/* Status Styles */
.status {
    text-align: center;
    margin-top: 20px; /* Add spacing above the status section */
}

.status-message {
    display: none;
    margin-top: 10px;
}

.status-message.show {
    display: block;
}

/* Progress Bar Styles */
.progress {
    height: 10px; /* Reduce the height for a more streamlined look */
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    width: 60%; /* Match the width of the text areas */
    margin: 10px auto; /* Center the progress bar */
}

.progress-bar {
    height: 100%;
    background-color: #28a745;
    transition: width 0.4s ease;
}

/* Spinner Styles */
.spinner-border {
    display: none;
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

.spinner-border.show {
    display: inline-block;
}

/* Form Group Styles */
.form-group {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 30px; /* Add spacing between form groups */
}

.form-group label {
    text-align: right;
    margin-right: 10px;
}

.form-group .control-icons {
    flex: 0;
}

.form-group .form-control {
    flex: 3;
    max-width: 100%;
}

.form-group.textarea-group {
    flex-direction: row;
    align-items: center;
}

.form-group.textarea-group label {
    text-align: right;
    margin-right: 10px;
}

.form-group.textarea-group .control-icons {
    align-self: center;
    margin-top: 0;
}

/* Input Container Styles */
.input-container {
    position: relative;
    width: 60%;
    margin-bottom: 10px; /* Add spacing between textarea and metrics */
}

/* Textarea Container Styles */
.textarea-container {
    position: relative;
    width: 70%;
    margin-bottom: 10px; /* Add spacing between textarea and metrics */
}

/* Metrics Styles */
.metrics {
    position: absolute;
    bottom: -20px; /* Move metrics further down */
    right: 0;
    font-size: 0.8em;
    color: #aaa;
    text-align: left;
    width: 100%;
    padding-bottom: 0; /* Remove padding to avoid overlap */
}

/* Error Styles */
.input-error {
    border: 2px solid red;
}

/* SVG Container Styles */
.svg-container {
    margin-top: 20px;
    text-align: center;
}

/* Actions Styles */
.actions {
    margin-top: 20px; /* Add spacing above the actions section */
}

/* Blinking Light Styles */
.blinking-light {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    transition: filter 0.3s ease;
}

.blinking-light[fill="#00FFFF"] {
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.8));
}

.blinking-light[fill="#FF00FF"] {
    filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.8));
}

.blinking-light[fill="#32CD32"] {
    filter: drop-shadow(0 0 6px rgba(50, 205, 50, 0.8));
}

.blinking-light[fill="#FFA500"] {
    filter: drop-shadow(0 0 6px rgba(255, 165, 0, 0.8));
}

.blinking-light[fill="#800080"] {
    filter: drop-shadow(0 0 6px rgba(128, 0, 128, 0.8));
}

.blinking-light[fill="#1E90FF"] {
    filter: drop-shadow(0 0 6px rgba(30, 144, 255, 0.8));
}