/* Sinch RCS Demo - Custom Styles */

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

.navbar {
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card {
    border: none;
    border-radius: 12px;
    background: white;
}

.card-header {
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control,
.form-check-input,
textarea {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus,
textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-text {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.6;
}

.btn-group .btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 10px 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    border-radius: 6px;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Stat Box Styling */
.stat-box {
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.stat-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2.5rem;
    line-height: 1;
}

/* Table Styling */
.table {
    font-size: 0.9rem;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f9f9f9;
}

.badge {
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Alert Styling */
.alert {
    border-radius: 6px;
    border: none;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Code blocks in errors */
code {
    background-color: #f8f9fa;
    color: #d63384;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

/* Utility Classes */
.font-monospace {
    font-family: 'Monaco', 'Courier New', monospace;
}

.text-truncate-long {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 6px;
        margin-bottom: 8px;
    }

    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#resultsSection {
    animation: fadeIn 0.3s ease;
}

/* Loading State */
.btn:disabled {
    cursor: wait;
}
