/* ============================================
   CMS Pages Custom Styling
   Integrated from .NET Project
   ============================================ */

/* DataTable Styling */
.dataTables_filter > label::before {
    content: '\F52A';
    font-family: bootstrap-icons !important;
    position: absolute;
    top: 5px;
    right: 15px;
}

.dataTables_filter > label {
    position: relative;
}

.dataTables_filter input[type="search"] {
    border-radius: 25px !important;
    width: 300px !important;
    padding-left: 20px;
}

@media only screen and (max-width: 450px) {
    .dataTables_filter input[type="search"] {
        width: auto !important;
    }

    .dataTables_filter > label::before {
        left: 66px !important;
        top: 4px !important;
    }
}

.page-item.active .page-link {
    background: #212529 !important;
}

.page-link {
    color: black;
}

/* CMS Page Container */
.cms-post-page {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.cms-pages-list {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.card-border-radius {
    border-radius: 8px;
}

.card-body-padding {
    padding: 20px;
}

/* Form Styling */
.form-label-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.input-field-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-field-control:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 170, 0.25);
    outline: none;
}

/* Check Input */
.check-input-box {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0073aa;
}

.check-labeltext {
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #e6e9ee;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
}

.card-label {
    font-weight: 600;
    color: #333;
}

.card-btn {
    background-color: #212529;
    border: none;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: #0d0e0f;
    transform: translateY(-2px);
}

/* Private Agency Page */
.private-agency-page {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

/* Q&A Section Styling */
.qa-collapse {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #e6e9ee !important;
}

.qa-collapse:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.qa-question {
    padding: 15px;
    background-color: #e6e9ee;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background-color: #e9ecef;
}

.qa-question[aria-expanded="true"] {
    background-color: #e3f2fd;
}

.toggle-icon {
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.qa-answer {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    line-height: 1.6;
    color: #555;
}

.collapse-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.collapse.show .collapse-icon {
    transform: rotate(180deg);
}

/* Color Classes */
.text-orange {
    color: #febb5b;
}

.text-lightblue {
    color: #43c2f0;
}

.text-red {
    color: #fd7458;
}

/* Badge Icons */
.badge-orange-icon {
    background-color: #febb5b;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge-green-icon {
    background-color: #6fc57f;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge-lightblue-icon {
    background-color: #43c2f0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge-red-icon {
    background-color: #fd7458;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Page Card Styling */
.page-card-wrapper {
    transition: all 0.3s ease;
}

.page-card-wrapper:hover {
    transform: translateY(-5px);
}

.page-card-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-card-slug {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.page-card-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* CMS Page Content */
.cms-page-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.entry-content {

    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.entry-content ul,
.entry-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.entry-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Summernote Editor */
.note-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.note-toolbar {
    background-color: #e6e9ee;
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

.note-btn {
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.note-btn:hover {
    background-color: #e9ecef;
}

.note-btn-qa {
    background-color: #0073aa;
    color: white;
}

.note-btn-qa:hover {
    background-color: #005a87;
}

/* Modal Styling */
.modal-header {
    background-color: #e6e9ee;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    background-color: #e6e9ee;
    border-top: 1px solid #dee2e6;
    padding: 15px;
}

/* Button Styles */
.btn-dark {
    background-color: #212529;
    border-color: #212529;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: #0d0e0f;
    border-color: #0d0e0f;
}

.btn-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.btn-outline-primary {
    color: #0073aa;
    border-color: #0073aa;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #0073aa;
    border-color: #0073aa;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cms-page-content {
        padding: 15px;
    }

    .cms-pages-list {
        padding: 15px;
    }

    .page-card-title {
        font-size: 1.1rem;
    }

    .dataTables_filter input[type="search"] {
        width: 100% !important;
    }

    .card-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cms-page-content {
        padding: 10px;
    }

    .cms-pages-list {
        padding: 10px;
    }

    .entry-content {
        padding: 15px;
    }

    .page-card-title {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cms-page-content {
    animation: slideInUp 0.3s ease;
}

/* Utility Classes */
.cursor-notAllowed {
    cursor: not-allowed;
}

.cursor-pointer {
    cursor: pointer;
}

.shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.text-center {
    text-align: center;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

.d-none {
    display: none !important;
}

.fs-14 {
    font-size: 0.875rem;
}

.fs-16 {
    font-size: 1rem;
}

.fs-20 {
    font-size: 1.25rem;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
