/* Layout-specific styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Navbar customization */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
}

/* Footer customization */
.footer {
    background-color: #f8f9fa;
}

/* Main content area */
main {
    padding-top: 20px;
}

/* Utility classes */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
}

/* Card enhancements */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Button enhancements */
.btn {
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    border: none;
    color: #000;
}

.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #31d2f2 100%);
    border: none;
}

/* Form styling */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Alert customization */
.alert {
    border-radius: 0.375rem;
    border: none;
    padding: 1rem;
}

/* Modal customization */
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Badge customization */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
}

    .page-link:hover {
        background-color: #e9ecef;
        border-color: #dee2e6;
    }

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Dropdown customization */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }

/* Tooltip customization */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

/* Scrollbar customization (for webkit browsers) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
/* Call Logs Page Styles */
.call-logs-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.filter-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
}

.filter-body {
    padding: 20px;
}

/* Filter controls */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #495057;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Grid info bar */
.grid-info-bar {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* AG Grid overrides */
.ag-theme-alpine {
    --ag-header-background-color: #f8f9fa;
    --ag-header-foreground-color: #495057;
    --ag-border-color: #dee2e6;
    --ag-row-border-color: #dee2e6;
    --ag-font-size: 13px;
}

    .ag-theme-alpine .ag-header-cell {
        font-weight: 600;
        border-right: 1px solid #dee2e6;
    }

    .ag-theme-alpine .ag-row {
        border-bottom: 1px solid #f1f1f1;
    }

        .ag-theme-alpine .ag-row:hover {
            background-color: #f8f9fa;
        }

    .ag-theme-alpine .ag-row-selected {
        background-color: #e3f2fd !important;
    }

/* Modal customizations */
.modal .table th {
    width: 140px;
    background-color: #f8f9fa;
}

/* Responsive design */
@media (max-width: 768px) {
    .call-logs-container {
        padding: 10px;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .action-buttons {
        flex-wrap: wrap;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
}
