/* Phone Tree Management Styles */
#phone-tree-management {
    padding: 20px;
}

/* Phone Tree List */
#phone-trees-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

#phone-trees-table td {
    vertical-align: middle;
}

/* Phone Tree Detail Section */
#phone-tree-detail-section {
    padding: 20px;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background: none;
}

/* Tables */
.table-responsive {
    margin-bottom: 1rem;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

/* Menu Structure */
#menus-container {
    margin-top: 1rem;
}

.list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-bottom: 0.5rem;
}

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

.list-group-item:last-child {
    border-bottom: none;
}

/* Options List */
.list-unstyled {
    margin-left: 1.5rem;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.badge {
    margin-right: 0.5rem;
}

/* Modals */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 2px solid #dee2e6;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-outline-primary:hover,
.btn-outline-danger:hover {
    color: #fff;
}

/* Call Details */
#call-details-modal .modal-body {
    padding: 1.5rem;
}

#call-details-modal .row {
    margin-bottom: 1rem;
}

#call-details-modal hr {
    margin: 1.5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .table-responsive {
        margin-bottom: 0.5rem;
    }

    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .list-group-item {
        padding: 0.75rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Error States */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.success-message {
    color: #198754;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tooltips */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .table-responsive {
        overflow: visible !important;
    }
} 