.status-notification {
    position: fixed;
    top: 25px;
    left: 180px; /* Adjust this value to match the sidebar width when expanded */
    padding: 10px;
    border-radius: 5px;
    background-color: transparent;
    z-index: 1050;
    -webkit-transition: left 0.3s;
    transition: left 0.3s; /* Smooth transition when position changes */
}

.status-notification.draft {
    background-color: transparent;
    color: #000;
}

.status-notification.saved {
    background-color: transparent;
    color: black;
}

.top-nav-status {
    position: absolute;
    top: 10px;
    left: 178px; /* Adjust this value to match the sidebar width when expanded */
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    -webkit-transition: left 0.3s;
    transition: left 0.3s; /* Smooth transition when position changes */
    z-index: 1050;
}

.top-nav-status.draft,
.top-nav-status.saved {
    display: none;
}

        .top-nav-status.draft {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .top-nav-status.saved {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

body {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow-x: hidden !important;
    background-color: var(--main-bg-color) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, 'Merriweather', serif, sans-serif;
        }


.editor-container {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
                -ms-flex-direction: column;
                    flex-direction: column;
            height: calc(100vh - 60px);
            margin: -115px 50px 20px 10px; /* Adjusted initial margin */
}

.summernote {
            -webkit-box-flex: 1;
                -ms-flex: 1;
                    flex: 1;
            overflow-y: hidden;
            background-color: var(--main-bg-color);
    border: none;
    margin: 0 !important;
    padding: 0 !important;
        }

body, html {
    height: 100%;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.content {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}



.note-editable {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    overflow-y: auto;
    overflow: hidden !important;
}

.note-toolbar-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1050;
}



/* Styling for the new Publish button */
#btn_rdy_pub {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid #f8f9fa;
    padding: 0.09rem .5rem .09rem .5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 50px;
    -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    color: #333;
    margin-right: 0.7rem !important;
    margin-left: 0;
    margin-top: 0.4rem !important;
    margin-bottom: .4rem !important;
}

#btn_rdy_pub:hover {
    color: #333;
    background-color: #ffca7b;
    border-color: #adadad;
}

#btn_rdy_pub:focus,
#btn_rdy_pub.focus {
    -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#btn_rdy_pub.disabled,
#btn_rdy_pub:disabled {
    opacity: 0.65;
}

#btn_rdy_pub:not(:disabled):not(.disabled):active,
#btn_rdy_pub:not(:disabled):not(.disabled).active,
.show > #btn_rdy_pub.dropdown-toggle {
    color: #fff;
    background-color: #aad688;
    border-color: #aad688;
}

#btn_rdy_pub:not(:disabled):not(.disabled):active:focus,
#btn_rdy_pub:not(:disabled):not(.disabled).active:focus {
    -webkit-box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
            box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

:root {
    --main-bg-color: #f5f5f5;
    --input-placeholder-color: #cecece;
}

.publish-options {
    background-color: var(--main-bg-color);
    border: none;
}



#inp_title {
    width: calc(100% - 80px); /* Adjusted to add margin on the right */
    min-height: 0;
    padding: 0.5rem 0.5rem 1.4rem 0.5rem;
    margin: 0 20px 0 -10px; /* Added margin */
    font-size: 3em;
    color: #000;
    resize: none;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    -webkit-transition: height 0.2s ease-in-out;
    transition: height 0.2s ease-in-out;
    overflow: hidden;
}

#inp_title::-webkit-input-placeholder {
    font-size: 2em;
    color: var(--input-placeholder-color);
}

.note-editor {
    margin: 0;
    padding: 0;
}

/* Control margin and padding of the Summernote toolbar */
.note-toolbar-wrapper {
    position: relative;
    margin-top: 0; /* Adjusted margin to position toolbar correctly */
    margin-left: 0; /* Align with title margins */
}

.note-toolbar {
    margin-top: 0px !important; /* Adjusted margin to position toolbar correctly */
    padding: 0;
    position: relative; /* Adjusted positioning */
    top: 15px; /* Adjusted top position */
    left: 5px;
    z-index: 1000 !important;
}

.note-toolbar .note-btn-group {
    margin: 0 !important;
    padding: 0 !important;
}

.note-toolbar .note-btn {
    margin: 0 !important;
    padding: 0.5rem !important; /* Example padding, adjust as needed */
}

/* Container for title label, vertical bar, and textarea */
.title-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin: 0 20px 20px -30px !important; /* Adjust margins as needed */
}

/* Title label styling */
.title-label {
    font-size: 1em; /* Adjust font size as needed */
    color: #000;
    margin-right: 10px; /* Space between label and bar */
    margin-left: 5px;
    font-family: 'Merriweather', serif;
}

/* Vertical bar styling */
.vertical-bar {
    height: 2.5em; /* Match the height of the title label */
    width: 1px;
    background-color: #000;
    margin-right: 15px; /* Space between bar and textarea */
}

.large-subtitle {
    font-size: 1.5em !important;
    color: #000;
}

#inp_subtitle {
    width: calc(100% - 0px); /* Adjust width as needed */
    padding: 0 0.5rem;
    margin: 0; /* Adjust margins as needed */
    font-size: 1.5em; /* Adjust font size as needed */
    color: #000;
    resize: none;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    word-wrap: break-word; /* Ensures long words wrap */
    overflow-wrap: break-word; /* Ensures long words wrap */
    overflow: hidden; /* Hide overflow if necessary */
}

#inp_subtitle::-webkit-input-placeholder {
    font-size: 1.5em;
    color: var(--input-placeholder-color);
}

.form-control,
.form-control:focus,
.note-editor .note-editing-area .note-editable,
.note-editor .note-toolbar,
.note-editor {
    background-color: var(--main-bg-color) !important;
    border: none;
    -webkit-box-shadow: none;
            box-shadow: none;
}

.form-group {
    margin-bottom: 1rem;
}

.btn1-custom {
    background-color: #e5e5e5 !important;
    border: none;
    color: #fff !important;
}

.btn1-custom:hover {
    background-color: #e5e5e5 !important;
    color: #fff !important;
}

h1,
.note-placeholder,
.note-editing-area .note-editable {
    color: #000;
}

.note-editor.note-frame {
    border: none !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
}

.form-control::-webkit-input-placeholder {
    color: var(--input-placeholder-color);
}

.note-toolbar .dropdown-toggle::after {
    color: var(--input-placeholder-color) !important;
}

.note-toolbar .note-btn.btn-primary {
    background-color: var(--input-placeholder-color) !important;
    border: none;
}



.note-statusbar {
    display: none !important;
}

#note_btn {
    position: relative;
    left: -30px; /* Adjusted to align with title */
    top: -15px; /* Adjusted to position correctly */
    background: none !important;
    color: #cecece !important;
    border-color: #e5e5e5 !important;
    -webkit-transition: background-color 0.3s, color 0.3s;
    transition: background-color 0.3s, color 0.3s;
    z-index: 1000;
}

#note_btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

#pub_now {
    background-color: #aad688;
}

#pub_now:hover {
    background-color: #5ea758;
}

.btn-primary {
    background-color: #7CB9E8;
}

.btn-primary:hover {
    background-color: #275EA3;
}

#saveMessage {
    display: none;
    position: fixed;
    top: 5px;
    padding: 0;
    font-family: Roboto;
    margin-top: 5px;
    border: none;
    right: 250px;
    z-index: 1050; /* Increased z-index */
    padding: 3px 6px;
    background-color: #f5f5f5;
    color: black;
    border-radius: 5px;
}

/* Initial state when toolbar is hidden */
.editor-container-toolbar-hidden {
    margin-top: 0 !important; /* Adjust this value as needed */
}

/* State when toolbar is shown */
.editor-container-toolbar-visible {
    margin-top: -100px !important; /* Adjust this value as needed */
}

.note-toolbar-hidden {
    top: 100px; /* Adjust this value as needed */
}

.note-toolbar-visible {
    top: -5px; /* Adjust this value as needed */
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050; /* Ensure it appears above other elements */
    display: none; /* Hidden by default */
}

.notification-success.show {
    display: block; /* Show when adding the 'show' class */
}

/* Publish Success Modal Styling */
.modal-publish-success .modal-dialog {
    max-width: 600px;
    margin: auto;
}

.modal-publish-success .modal-content {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    opacity: 0.95; /* Adjust opacity as needed */
}

.modal-publish-success .modal-header {
    border-bottom: none;
    position: relative;
}

.modal-publish-success .modal-header .btn.close {
    position: absolute;
    right: 10px;
    top: 10px;
    border: none;
    font-size: 1.5rem;
    color: #333;
}

.modal-publish-success .modal-body {
    padding: 20px;
}

.modal-publish-success h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.modal-publish-success p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.modal-publish-success a {
    color: #007bff;
}

.modal-publish-success .btn-share {
    width: calc(100% - 40px);
    margin: 10px 10px;
    border-radius: 25px;
    background-color: unset;
    color: black;
    padding: 10px 10px;
    font-size: 1rem;
    -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid black !important;
    display: block;
    text-align: center;
}

.modal-publish-success .btn-share:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: white;
}

.modal-publish-success .modal-body h4 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: normal;
}

.modal-backdrop.show {
    opacity: 0.7;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

.modal-fullscreen {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    height: 100%;
}

.modal-fullscreen .modal-content {
    margin: auto;
    background-color: #fff;
}

#row_close {
    padding: 5px;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Shadow border around close button */
}