/* Remove Tailwind imports and use only custom CSS */
body, input, select, button {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

body {
    background-color: #1a202c;
    color: #e2e8f0;
}

/* Navigation */
.nav-container {
    background-color: #2d3748;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    color: #4299e1;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Content */
.content-container {
    max-width: 64rem;
    margin: 2rem auto;
    padding: 0 2rem;
}

h1 {
    color: #4299e1;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

/* Forms */
.form-container, .bg-gray-800 {
    background-color: #2d3748;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #a0aec0;
}

.form-group input,
.form-group select,
.form-group button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #4299e1;
    color: #fff;
    border: none;
    width: 100%;
}

.btn-primary:hover {
    background-color: #3182ce;
}

/* Add a new style for submit buttons */
button[type="submit"] {
    background-color: #4299e1;
    color: #fff;
    border: none;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #3182ce;
}

/* Remove any conflicting styles */
.form-group button {
    background-color: #4299e1;
    color: #fff;
    border: none;
}

.form-group button:hover {
    background-color: #3182ce;
}

/* Settings */
.settings-icon {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4299e1;
    transition: color 0.2s;
}

.settings-icon:hover {
    color: #3182ce;
}

.settings-popup {
    display: none;
    position: fixed;
    top: 4rem;
    right: 1.5rem;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    width: 20rem;
    border-radius: 0.5rem;
}

/* Operations */
.operation {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #4a5568;
    border-radius: 0.375rem;
    background-color: #2d3748;
}

.operation h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #4299e1;
}

.operation label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a0aec0;
}

.operation input,
.operation select {
    width: 100%;
    margin-bottom: 1rem;
}

.remove-operation {
    background-color: #f56565;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove-operation:hover {
    background-color: #e53e3e;
}

/* Output */
#json_output {
    background-color: #2d3748;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

#json_output pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #1a202c;
    padding: 1rem;
    border-radius: 0.375rem;
    font-family: 'Courier New', Courier, monospace;
}

#success_message {
    background-color: #48bb78;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
}

/* Confirmation popup */
.confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #2d3748;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-content h2 {
    color: #4299e1;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-container button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    border: none;
    transition: background-color 0.2s;
}

#confirm-submit {
    background-color: #4299e1;
    color: white;
}

#confirm-submit:hover {
    background-color: #3182ce;
}

#reject-submit {
    background-color: #f56565;
    color: white;
}

#reject-submit:hover {
    background-color: #e53e3e;
}

/* Additional styles */
.info-field {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-field strong {
    min-width: 120px;
    margin-right: 1rem;
    color: #a0aec0;
}

.info-field span {
    background-color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    flex-grow: 0;
    flex-shrink: 1;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operation-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.operation-controls select {
    flex-grow: 1;
}

.operation-controls button {
    flex-shrink: 0;
    width: auto;
}

#re-onboard-form > button[type="submit"],
.submit-button {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .content-container {
        padding: 0 1rem;
    }

    .form-container, .bg-gray-800 {
        padding: 1.5rem;
    }

    .button-container {
        flex-direction: column;
    }

    .button-container button {
        width: 100%;
    }
}

/* Add these styles if they're not already present */

.confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #2d3748;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-content h2 {
    color: #4299e1;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.popup-content pre {
    background-color: #1a202c;
    padding: 1rem;
    border-radius: 0.375rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1rem;
    font-family: 'Courier New', Courier, monospace;
    color: #e2e8f0;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-container button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    border: none;
    transition: background-color 0.2s;
}

#confirm-submit {
    background-color: #4299e1;
    color: white;
}

#confirm-submit:hover {
    background-color: #3182ce;
}

#reject-submit {
    background-color: #f56565;
    color: white;
}

#reject-submit:hover {
    background-color: #e53e3e;
}

/* Add this at the end of your CSS file */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.settings-popup {
    position: fixed;
    top: 60px;
    right: 20px;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 5px;
    padding: 20px;
    z-index: 1000;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.settings-popup label {
    display: block;
    margin-bottom: 5px;
}

.settings-popup input {
    width: 100%;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #4a5568;
    background-color: #1a202c;
    color: #e2e8f0;
}