* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', sans-serif !important;
    background-color: #9735e7 !important;
    color: #f8fafc;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 42rem;
    margin: 0 auto;
}

/* Simple top nav */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 1rem;
}
.top-nav .container {
    display: flex;
    justify-content: flex-end;
}
.nav-btn {
    background-color: #3b82f6;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.nav-btn:hover {
    background-color: #2563eb;
}
.nav-btn:active {
    transform: translateY(1px);
}

.card {
    background: rgb(38, 37, 37);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #f3f5f8;
    margin-bottom: 0.5rem;
}

.header p {
    color: #f0f1f2;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f0f2f6;
    margin-bottom: 0.5rem;
}

.form-input {
    background: rgb(221, 226, 230);
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
    border-color: #3b82f6;
}

.form-input::placeholder {
    color: #000000;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    flex: 1;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: rgb(227, 113, 113);
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.message {
    margin-top: 1.5rem;
}

.message.hidden {
    display: none;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
}

.alert.hidden {
    display: none;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.spinner {
    animation: spin 1s linear infinite;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.preview-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.preview-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.preview-content {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-item:last-child {
    margin-bottom: 0;
}

.preview-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.preview-value {
    font-size: 0.875rem;
    color: #111827;
}
