/**
 * Asterisk Auto-Provisioning - Custom Styles
 */

/* General */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand i {
    margin-right: 0.5rem;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border: none;
}

.card.bg-primary .card-body,
.card.bg-success .card-body,
.card.bg-warning .card-body,
.card.bg-info .card-body {
    padding: 1.25rem;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table td {
    vertical-align: middle;
}

.table code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
}

/* Status Badges */
.badge {
    font-weight: 500;
}

.badge i {
    font-size: 0.625rem;
    margin-right: 0.25rem;
}

/* Activity List */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

/* Phone Detail Card */
.card dl {
    margin-bottom: 0;
}

.card dt {
    font-weight: 500;
    color: #6c757d;
}

.card dd {
    color: #212529;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button Groups */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

/* Danger Zone */
.border-top.pt-3 {
    margin-top: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 767.98px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
    }
}

/* Animations */
.badge {
    transition: all 0.2s ease;
}

.btn {
    transition: all 0.15s ease-in-out;
}

/* Empty State */
.text-muted.py-4 {
    padding: 2rem !important;
}

/* Code highlighting */
code {
    color: #d63384;
}

/* Phone status indicator */
.status-online {
    color: #198754;
}

.status-offline {
    color: #6c757d;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
}
