/* ===== Admin Settings Page Styles ===== */

/* Confirmation Cards */
.confirmation-card {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s, transform 0.2s;
}

.confirmation-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.confirmation-message {
    padding: 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Notification Cards */
.notification-card {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.notification-card.active {
    border-left: 4px solid #28a745;
}

.notification-card.inactive {
    border-left: 4px solid #6c757d;
    opacity: 0.8;
}

.notification-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.notification-section {
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.notification-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recipient-emails .badge {
    font-weight: normal;
    border: 1px solid #dee2e6;
}

.notification-subject {
    font-weight: 500;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.notification-message {
    padding: 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
}

.merge-tag {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 500;
}

/* Merge Tag Documentation Styles */
.merge-tag-code {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
}

.merge-tag-section {
    border-left: 3px solid #0d6efd;
    padding-left: 1rem;
}

.merge-tag-help-icon {
    cursor: pointer;
    color: #0d6efd;
    font-size: 1.1em;
    margin-left: 0.5rem;
    transition: color 0.2s;
}

.merge-tag-help-icon:hover {
    color: #0a58ca;
}

/* Accordion Styling */
.accordion-button {
    font-weight: 500;
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0066cc;
}

.accordion-button i {
    font-size: 1.1em;
}

.accordion-body {
    background-color: #ffffff;
}

/* Badge Styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Disabled Buttons */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

button:disabled small {
    font-weight: normal;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .confirmation-card,
    .notification-card {
        margin-bottom: 1rem !important;
    }
    
    .accordion-button {
        font-size: 0.95rem;
    }
}

/* Notification Editor Modal Styles */
.recipient-display {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    min-height: 40px;
}

.recipient-display .badge {
    font-size: 0.9em;
    font-weight: normal;
    padding: 0.4em 0.8em;
}

.recipient-display .text-muted {
    font-size: 0.9em;
    font-style: italic;
}

.recipient-list {
    min-height: 40px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.recipient-list .badge {
    font-size: 0.95em;
    padding: 0.5em 0.8em;
    cursor: default;
}

.recipient-list .btn-close {
    padding: 0.2em;
    cursor: pointer;
}

.btn-group label.btn {
    cursor: pointer;
}

.modal-xl {
    max-width: 1200px;
}

.modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Recipient Dropdown Autocomplete */
.recipient-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 50px; /* Account for button width */
    z-index: 1050;
    background-color: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    margin-top: -1px;
}

.recipient-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.recipient-dropdown-item:last-child {
    border-bottom: none;
}

.recipient-dropdown-item:hover {
    background-color: #f8f9fa;
}

.recipient-dropdown-item .fw-bold {
    color: #212529;
    margin-bottom: 2px;
}

.recipient-dropdown-item .text-muted {
    font-size: 0.85em;
    color: #6c757d;
}

.position-relative {
    position: relative;
}
