/* Admin Area Styles - Clean/Professional Design */

/* Card styling for forms */
.admin-card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
}

.admin-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Table styling */
.admin-table {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.admin-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    white-space: nowrap;
}

.admin-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Page header styling */
.admin-page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.admin-page-header h1 {
    margin-bottom: 0;
    font-weight: 600;
}

/* Button spacing */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-actions-cell {
    white-space: nowrap;
}

/* Search form styling */
.admin-search-form {
    max-width: 400px;
}

.admin-search-form .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
}

.admin-search-form .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Details view styling */
.admin-details dt {
    font-weight: 600;
    color: #6c757d;
}

.admin-details dd {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f1f1;
}

.admin-details dd:last-child {
    border-bottom: none;
}

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

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

/* Delete confirmation styling */
.admin-delete-warning {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.admin-delete-warning h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

/* Validation styling */
.admin-validation-summary {
    margin-bottom: 1rem;
}

/* Responsive table wrapper */
.admin-table-wrapper {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Status badges */
.admin-badge-active {
    background-color: #198754;
}

.admin-badge-inactive {
    background-color: #dc3545;
}

/* Truncate long text */
.admin-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pre-formatted text for Request/Response */
.admin-pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}