/* App-specific styles */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--aau-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Page load animation */
main {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button transitions */
.btn {
    transition: all 0.15s ease;
}

/* Card styling */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--aau-gray);
    border-bottom: 1px solid var(--aau-border);
}

/* Table improvements */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #6c757d;
    border-bottom-width: 2px;
}

/* Tab styling override for app tabs */
.nav-tabs .nav-link {
    font-size: 0.9rem;
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--aau-light-blue);
    border-bottom-color: rgba(47, 111, 167, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--aau-light-blue);
    border-bottom-color: var(--aau-light-blue);
    background: none;
}

/* Form styling */
.form-label {
    font-size: 0.9rem;
}

textarea.form-control {
    resize: vertical;
}

/* Alert improvements */
.alert {
    border-radius: 0.5rem;
}

/* Spinner in buttons */
.btn .spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.15em;
}

/* Status badges */
.badge-status-sent { background-color: #198754; }
.badge-status-pending { background-color: #ffc107; color: #000; }
.badge-status-failed { background-color: #dc3545; }
.badge-status-cancelled { background-color: #6c757d; }

/* Utility: text-truncate for message previews */
.msg-preview {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SSE result container transitions */
#send-result,
#preferences-result {
    transition: opacity 0.2s ease;
}
