body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 800px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #30363d;
    padding-bottom: 1.5rem;
}

header h1 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
}

.card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

h2 {
    color: #f0f6fc;
    border-bottom: 1px solid #21262d;
    padding-bottom: 0.75rem;
    margin-top: 0;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

textarea, input {
    width: 100%;
    padding: 0.75rem;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 1rem;
    box-sizing: border-box;
}

textarea:focus, input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

button {
    background-color: #238636;
    color: white;
    border: 1px solid rgba(240, 246, 252, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2ea043;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed #30363d;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: border-color 0.2s, background-color 0.2s;
}
.file-upload-wrapper:hover {
    border-color: #58a6ff;
    background-color: rgba(88, 166, 255, 0.05);
}
.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.result-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.result-box.success {
    background-color: rgba(56, 139, 253, 0.1);
    border-color: #388bfd;
}

.result-box.error {
    background-color: rgba(248, 81, 73, 0.1);
    border-color: #f85149;
    color: #f85149;
}

.result-box ul {
    list-style-type: none;
    padding-left: 0;
}
.result-box li {
    background-color: #0d1117;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 4px;
}

.key-container {
    margin-top: 1rem;
}

pre {
    background-color: #010409;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #30363d;
    white-space: pre-wrap;
    word-wrap: break-word;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    padding-top: 60px;
}

.modal-content {
    background-color: #0d1117;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
}

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

.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

#modal-error-message {
    color: #D8000C; /* Red color for errors */
    font-weight: bold;
    margin-top: 10px;
}
.show-pass-group {
    display: flex;
    margin: 2em;
    margin-top: 0.5em;
}
#loadingSpinner {
    /* Position it over the entire screen */
    position: fixed;
    z-index: 1000; /* High z-index to be on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 1.2em;
}

/* The actual spinning animation part */
.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}
.demo-image {
    max-width: 100%;

}
.img-div {
    width:45%;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}