/* CMS Management Module Styles */
.cms-wrapper {
    padding: 24px;
    background: #fff;
    min-height: calc(100vh - 72px);
}

.cms-container {
    width: 100%;
}

.cms-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 30px;
}

/* Page Selection & Add New Page Header */
.cms-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.btn-select-page {
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    color: #333;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-select-page::after {
    color: #D10000;
    border-top: .4em solid;
}

.btn-add-page-dropdown {
    color: #D10000 !important;
    font-weight: 700 !important;
}

.btn-add-page-dropdown:hover {
    background-color: #fff1f2 !important;
}

.btn-add-page-link {
    color: #D10000;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

/* Page Title Input */
.cms-page-title-input {
    width: 100%;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    color: #111;
    margin-bottom: 30px;
}

/* Action Buttons */
.btn-add-media {
    background: #D10000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Editor Container */
.cms-editor-container {
    border: 1px solid #BEE1FA;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.cms-editor-toolbar {
    background: #D10000;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-toolbar-edit {
    background: #fff;
    color: #111;
    border: none;
    padding: 4px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.cms-editor-body {
    padding: 30px;
    min-height: 350px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Modal Styling */
.modal-content-custom {
    border-radius: 25px;
    overflow: hidden;
    border: none;
}

.modal-header-red {
    background: #D10000;
    color: #fff;
    padding: 15px 25px;
    border: none;
}

.modal-header-red .modal-title {
    font-weight: 700;
    font-size: 18px;
}

.modal-body-custom {
    padding: 30px 25px;
}

.modal-footer-custom {
    padding: 0 25px 30px;
    border: none;
    display: flex;
    gap: 15px;
}

.btn-modal-save {
    background: #D10000;
    color: #fff;
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
}

.btn-modal-cancel {
    background: #fff;
    color: #111;
    flex: 1;
    padding: 12px;
    border: 1.5px solid #000;
    border-radius: 12px;
    font-weight: 700;
}

/* Editor Footer Actions */
.editor-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn-editor-save {
    background: #D10000;
    color: #fff;
    padding: 10px 45px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
}

.btn-editor-cancel {
    background: #fff;
    color: #111;
    padding: 10px 35px;
    border: 1.5px solid #000;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}