:root {
    --section-padding: 2rem;
    --card-padding: 1.5rem;
    --element-spacing: 1rem;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
}

.navbar-nav .nav-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: var(--element-spacing);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.card-body {
    padding: var(--card-padding);
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-group .btn {
    border-radius: 0.375rem;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

.table {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0;
    font-size: 0.875rem;
    --bs-table-bg: transparent;
}

.table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.025em;
}

.table tbody td {
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.08);
}

.progress {
    height: 0.75rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
    border-radius: 0.5rem;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.8125rem;
}

.modal-content {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 0.75rem 0.75rem;
}

.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
}

.list-group-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
}

.list-group-flush .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0 !important;
    margin-bottom: 0;
}

.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.125rem;
    font-size: 0.8125rem;
}

.dashboard-stat-card {
    border-left: 4px solid var(--bs-primary);
}

.call-status-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--bs-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--bs-primary);
}

.file-upload-area.drag-over {
    border-color: var(--bs-success);
}

.audio-player {
    border-radius: 0.5rem;
    max-width: 200px;
}

.toast-container {
    z-index: 1055;
}

.toast {
    border-radius: 0.5rem;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 600;
}

h2 { font-size: 1.5rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 1rem;
        --card-padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 0.9375rem;
    }
}
