/* Custom styles for EPP Sandbox */
body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.command-card {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.command-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.array-field {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.array-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.array-item input {
    flex: 1;
    margin-right: 0.5rem;
}

.array-item .btn {
    flex-shrink: 0;
}

.result-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.xml-content {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.tab-content {
    margin-top: 1rem;
}

.alert {
    border-radius: 6px;
}

.btn-demo {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-demo:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: white;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.command-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.field-attributes {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid #e9ecef;
}

.field-attributes .form-group {
    margin-bottom: 0.5rem;
}

.field-attributes label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.timing-info {
    background-color: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timing-info strong {
    color: #495057;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

.toast {
    min-width: 300px;
    margin-bottom: 10px;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}

.toast-body {
    padding: 0.75rem;
}

.toast-error .toast-header {
    background-color: #f8d7da;
    color: #721c24;
    border-bottom-color: #f5c6cb;
}

.toast-success .toast-header {
    background-color: #d4edda;
    color: #155724;
    border-bottom-color: #c3e6cb;
}

.toast-warning .toast-header {
    background-color: #fff3cd;
    color: #856404;
    border-bottom-color: #ffeaa7;
}

.toast-info .toast-header {
    background-color: #d1ecf1;
    color: #0c5460;
    border-bottom-color: #bee5eb;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
