/* Variables */
:root {
    /* Color Palette */
    --primary-color: #1a36b4ff;    /* Strong saturated blue */
    --secondary-color: #a4c2f4;    /* Light desaturated blue */
    --dark-color: #1d1d1dff;       /* Very dark grey */
    --light-color: #f6f5ecff;      /* Eggshell off-white */
    --white-color: #ffffff;        /* White */
    --grey-color: #ccc; /* Grey */
    --primary-color-hover: #142a89;

    /* Notification Colors */
    --success-color: #28a745;      /* Green */
    --warning-color: #ffc107;      /* Yellow */
    --danger-color: #dc3545;       /* Red */

    /* Text Colors */
    --text-color: var(--dark-color);
    --background-color: var(--light-color);
}

/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevents global scrolling */
    background: var(--background-color);
    font-family: 'Figtree', sans-serif;
    color: var(--text-color);
}

/* Landing Page Styles */
#landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

#landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    pointer-events: none;
    filter: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="grain"><feTurbulence type="fractalNoise" baseFrequency=".6" numOctaves="15" result="noise"/><feColorMatrix type="saturate" values="0"/></filter></svg>#grain');
    opacity: 0.25;
}

.landing-content {
    text-align: center;
    color: var(--white-color);
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.landing-logo {
    width: 200px;
    margin-bottom: 20px;
}

.landing-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

#landing-signin-btn {
    padding: 12px 24px;
    font-size: 1.2rem;
    background-color: var(--white-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#landing-signin-btn:hover {
    background-color: var(--light-color);
}

#landing-signin-btn:active {
    transform: scale(0.95);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(29, 29, 29, .1); /* Semi-transparent thumb */
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: padding-box;
    
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(29, 29, 29, .3); /* Semi-transparent thumb */
}

::-webkit-scrollbar-button {
    background: transparent;
}

/* User Name Styles */
.user-name {
    font-family: 'Figtree';
    font-size: 1.2em;
    color: var(--white-color);
}

/* Sidebar Styles */

/* Sidebar styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100%;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    z-index: 10; /* Ensure sidebar content stays above the grain */
    transition: width 0.3s ease;
    overflow: hidden;
    user-select: none;
    box-shadow: 0 4.5px 27px rgba(90, 128, 153, 0.5);
}

/* Sidebar grain overlay */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Match the background of the sidebar */
    pointer-events: none; /* Ensure it doesn't block interactions */
    filter: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="grain"><feTurbulence type="fractalNoise" baseFrequency=".6" numOctaves="15" result="noise"/><feColorMatrix type="saturate" values="0"/></filter></svg>#grain'); /* Grayscale grain */
    z-index: 0; /* Ensure it stays below the sidebar content */
    opacity: .25; /* Adjust opacity for a subtle grain effect */
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar-toggle {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5em;
    cursor: pointer;
    margin-right: 15px;
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

#sidebar-toggle:hover {
    color: var(--white-color);
}

.sidebar.collapsed #sidebar-toggle {
    transform: rotate(180deg);
}

.sidebar .left-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar .gradient-text {
    font-size: 1.5rem;
}

.sidebar .beta-text {
    font-size: 0.8rem;
    margin-top: -13px;
}

.sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Article List */
#article-list {
    max-height: calc(100vh - 165px); /* Adjust based on the total height of other elements above */
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    transform: translateY(-45px);
    transition: transform 0.5s ease;
    overflow: auto; /* Enable scrolling without affecting layout */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    -webkit-mask-image: linear-gradient(to bottom, black, black calc(100% - 20px), transparent);
    -webkit-mask-composite: destination-in;
    mask-image: linear-gradient(to bottom, black, black calc(100% - 20px), transparent);
    mask-composite: intersect;
}

/* Hide scrollbar for WebKit browsers */
#article-list::-webkit-scrollbar {
    display: none;
}


.article-list-buttons-hidden {
    transform: translateY(0px) !important;
    max-height: calc(100vh - 205px) !important; /* Adjust based on the total height of other elements above */
}

#article-list li {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

#article-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Drafts Container */
.drafts-container {
    padding: 10px;
}

.drafts-container small {
    display: block;
    margin-bottom: 5px;
}

.drafts-progress {
    background: rgba(255, 255, 255, 0.2);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

#drafts-progress-bar {
    background: var(--secondary-color);
    width: 0%;
    height: 100%;
    transition: width 0.3s ease;
}

/* Profile Container */
.profile-container {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
    padding: 5px;
}

.sidebar.collapsed h1,
.sidebar.collapsed .beta-text,
.sidebar.collapsed .auth-dropdown-button span,
.sidebar.collapsed .drafts-container,
.sidebar.collapsed #article-list li {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Prevent text from wrapping and hide overflow */
.sidebar .sidebar-content,
.sidebar .sidebar-buttons,
.sidebar h1,
.sidebar .beta-text,
.sidebar .auth-dropdown-button span,
.sidebar .drafts-container,
.sidebar #article-list li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content Positioning */
.container {
    margin-left: 240px;
    transition: margin-left 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed + .container {
    margin-left: 60px;
}

/* Header Styles */
header {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.35rem;
    padding: 0rem 0.9rem;
    background: var(--primary-color);
    box-shadow: 0 4.5px 27px rgba(90, 128, 153, 0.5);
}

/* Right Container Styles */
.right-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

h1 {
    text-align: center;
    margin: 0;
}

.beta-text {
    margin-left: 3px;
    color: var(--white-color);
    font-size: 0.8em;
    user-select: none;
    margin: 0;
}

.sidebar .gradient-text {
    background-color: var(--white-color);
    background-image: linear-gradient(
        45deg,
        var(--secondary-color) 0%,
        var(--light-color) 50%,
        var(--secondary-color) 100%
    );
    background-size: 100%;
    background-repeat: repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 0.75s ease forwards;
    user-select: none;
}



.gradient-text:hover {
    animation: rainbow-text-simple-animation 0.5s ease-in forwards;
}

/* Keyframes for Gradient Text */
@keyframes rainbow-text-simple-animation-rev {
    0% {
        background-size: 650%;
    }
    40% {
        background-size: 650%;
    }
    100% {
        background-size: 100%;
    }
}

@keyframes rainbow-text-simple-animation {
    0% {
        background-size: 100%;
    }
    80% {
        background-size: 650%;
    }
    100% {
        background-size: 650%;
    }
}

/* Spinner */
.spinner {
    border: 4.5px solid rgba(0, 0, 0, 0.2);
    border-top: 4.5px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

/* Fonts */
.right-panel, textarea, input {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

/* Labels and Inputs */
label {
    display: block;
    margin-top: 13.5px;
    font-weight: bold;
}

input[type=text], select, textarea {
    width: 100%;
    padding: 9px;
    margin-top: 4.5px;
    border: 1px solid var(--grey-color);
    border-radius: 3.6px;
    box-sizing: border-box;
}

textarea {
    resize: none;
}

button[type=submit] {
    margin: 18px auto;
    padding: 12px 20px;
    font-family: 'Figtree', sans-serif;
    font-size: 1.0rem;
    font-weight: bold;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    transition: background-color 0.3s ease;
}

button[type=submit]:hover {
    background-color: var(--primary-color-hover);
}

button[type=submit]:active {
    transform: scale(0.95);
}

/* Layout Styles */
.main-content {
    display: grid;
    grid-template-columns: 540px 4.5px 1fr;
    height: 100%;
    overflow: hidden;
}

.left-panel {
    grid-column: 1;
    overflow-y: auto;
    padding: 18px;
    box-sizing: border-box;
    height: 100%;
}

.divider {
    grid-column: 2;
    cursor: col-resize;
    background-color: var(--dark-color);
    transition: opacity 0.3s ease;
    opacity: 15%;
}

.divider:hover {
    opacity: 50%;
}

.right-panel {
    grid-column: 3;
    overflow-y: auto;
    padding: 18px;
    padding-top: 20px;
    padding-bottom: 36px;
    box-sizing: border-box;
    height: 100%;
}

.right-panel h2 {
    margin-top: 0;
}

.right-panel p .teaser-section p {
    color: var(--grey-color);
}

.right-panel p {
    font-size: 1.1em;
    margin: 0;
}

.headline-section {
    display: flex;
    align-items: center;
}

.teaser-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#login-btn,
#auth-status,
#headline,
#teaser,
#body,
label {
    user-select: none;
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    font-size: 9rem;
    color: var(--dark-color);
    opacity: 100;
    user-select: none;
}

.iconoir-empty-page {
    opacity: 15%;
}

.placeholder h1 {
    margin: 0;
    margin-top: 0px;
    font-size: 1.5rem;
    font-family: 'Figtree', sans-serif;
    user-select: none;
    opacity: 15%;
}

.body-section {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.headline-section h2,
.teaser-section p,
.body-section #corrected-text {
    flex-grow: 1;
    margin-bottom: 0px;
    user-select: none;
}

/* Copy Icon */
.copy-icon {
    cursor: pointer;
    margin-left: 9px;
    font-size: 1.5em;
    color: #555;
    transition: color 0.3s ease;
}

.copy-icon:hover {
    color: var(--primary-color);
}

.copy-icon:active {
    transform: scale(0.95);
}

.copy-icon.copied {
    animation: copied-animation 0.5s forwards;
}

@keyframes copied-animation {
    0% {
        color: var(--primary-color);
        transform: scale(1);
    }
    50% {
        color: var(--primary-color-hover);
        transform: scale(1.2);
    }
    100% {
        color: var(--primary-color);
        transform: scale(1);
    }
}

/* Highlighted Text */
.highlight {
    font-weight: bold;
    cursor: pointer;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.highlight[data-accepted="true"] {
    text-decoration: none;
    animation: fadeInHighlight 3s;
}

.highlight[data-accepted="false"] {
    opacity: 0.8;
    filter: saturate(0.4);
    font-weight: 400;
}

/* Highlight Styles */
.ap-style {
    background-color: #fff3cd;
    color: #856404;
    padding: .2px 3.5px;
    border-radius: 4px;
}

.seo-opt {
    background-color: #d4e2ed;
    color: #0363a8;
    padding: .2px 3.5px;
    border-radius: 4px;
}

.warn {
    background-color: #f8d7da;
    color: #721c24;
    padding: .2px 3.5px;
    border-radius: 4px;
    position: relative;
}

/* Tooltip Styles */
#tooltip {
    position: absolute;
    background-color: var(--primary-color-hover);
    color: var(--white-color);
    text-align: left;
    padding: 7.2px 10.8px;
    border-radius: 5.4px;
    z-index: 1000;
    white-space: normal;
    max-width: 400px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.9em;
    line-height: 1.4em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Highlighted text on copy button hover */
.generated-text {
    transition: opacity 0.3s ease, color 1s ease-in;
    padding: 10px;
    border-radius: 10px;
    color: var(--text-color);
    opacity: 100%;
}

.light-text {
    transition: none; /* Make transitions instant so we don't fade into this when we run the prompt */
    opacity: 25%;
}

.highlighted-text {
    background-color: #fdfdfd;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white-color);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    position: relative;
    border-radius: 10px;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    color: var(--primary-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color-hover);
    text-decoration: none;
    cursor: pointer;
}

/* Modal Content Styles */
.modal-content h2 {
    margin-top: 0;
}

.modal-content label {
    display: block;
    margin-top: 10px;
}

.modal-content input {
    width: 95%;
    padding: 8px;
    margin-top: 5px;
}

.modal-content button {
    margin: 18px auto;
    padding: 12px 20px;
    font-family: 'Figtree', sans-serif;
    font-size: 1.0rem;
    font-weight: bold;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: var(--primary-color-hover);
}

.modal-content p {
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

.hidden-spinner {
    visibility: hidden !important;
}

/* Dropdown Styles */
.auth-dropdown {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.auth-dropdown-button {
    color: var(--secondary-color);
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s;
    background-color: transparent;
}

.iconoir-user-circle {
    font-size: 1.75rem;
}

.auth-dropdown-button:hover {
    color: var(--white-color);
}
.auth-dropdown-button .iconoir-user-circle:active {
    transform: scale(0.95);
}

/* Dropdown Content */
.auth-dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 52px;
    background-color: var(--white-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    padding: 12px;
    z-index: 1;
    border-radius: 4px;
    left: 3.5px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.auth-dropdown.show .auth-dropdown-content {
    visibility: visible;
    opacity: 1;
}

/* User Email Styles */
.user-email {
    display: block;
    font-size: 0.9em;
    color: #555;
    padding-bottom: 5px;
}

/* Auth Buttons in Dropdown */
.auth-dropdown-content .auth-button {
    width: 100%;
    padding: 8px 12px;
    margin: 5px 0;
    font-size: 14px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-dropdown-content .auth-button:hover {
    background-color: var(--primary-color-hover);
}

/* Feedback Modal Styles */
#feedback-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 190px;
    background-color: var(--white-color);
    color: var(--primary-color);
    padding: 16px;
    border-radius: 10px;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#feedback-modal .close-btn {
    font-size: 1.5rem;
}

#feedback-modal.show {
    opacity: 0.6;
    visibility: visible;
    animation: fadeIn 0.4s ease-out;
}

#feedback-modal h2 {
    color: var(--primary-color);
    margin-top: -4px;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

.close-feedback-btn:hover {
    color: var(--primary-color-hover);
}

/* Slider Container */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

#rating-slider {
    flex-grow: 1;
}

/* Slider Styling */
#feedback-modal input[type=range] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #ad1b1b, #3f7a4c);
    border-radius: 8px;
    outline: none;
    margin: 16px 0;
    transition: background 0.3s ease;
}

/* Slider Thumb */
#feedback-modal input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border: 2px solid var(--white-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

#feedback-modal input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#feedback-modal input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border: 2px solid var(--white-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

#feedback-modal input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.1);
}

/* Submit Button Styling */
#submit-feedback-btn {
    padding: 0px;
    border: none;
    border-radius: 6px;
    color: rgb(118, 75, 52);
    font-size: 1.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background: transparent;
    text-align: left;
}

#submit-feedback-btn:hover {
    transform: scale(1.03);
}

#submit-feedback-btn:active {
    transform: scale(0.98);
}

#feedback-modal.show:hover {
    opacity: 1;
}

/* AI Disclaimer Banner Styles */
.ai-warning-banner {
    display: flex;
    align-items: center;
    background-color: #fff3cd;
    padding: 12px 16px;
    border-left: 6px solid #ffeeba;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    user-select: none;
}

#ai-warning-banner p {
    color: #856704;
    margin-top: 2px;
}

#ai-warning-banner .iconoir-warning-circle {
    font-size: 1.5em;
    color: #856704;
    margin-right: 12px;
}

.ai-warning-banner p {
    margin: 0;
}

/* Animation for modal appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* Blurred Text */
.blurred {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

/* Warning Banner Styles */
.warning-banner {
    display: flex;
    align-items: center;
    background-color: #f8d7da;
    padding: 12px 16px;
    border-left: 6px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95em;
    color: var(--dark-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.warning-banner.green {
    background-color: #d4edda;
    border-left-color: #c3e6cb;
    color: #155724;
}

.warning-banner.yellow {
    background-color: #fff3cd;
    border-left-color: #ffeeba;
    color: #856404;
}

.warning-banner.red {
    background-color: #f8d7da;
    border-left-color: #f5c6cb;
    color: #721c24;
}

.warning-banner .warning-icon {
    font-size: 1.5em;
    margin-right: 12px;
}

.warning-banner p {
    margin: 0;
}

/* No JavaScript Warning Styles */
.no-js-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--white-color);
    text-align: center;
    padding: 15px 20px;
    font-size: 1.2em;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
}

.no-js-warning i.iconoir-warning-circle {
    margin-right: 10px;
    font-size: 1.5em;
    color: var(--white-color);
}

.no-js-warning p {
    margin: 0;
}

.no-js-warning strong {
    font-weight: bold;
}

/* Icon Buttons */
.iconoir-plus-circle,
.sidebar-buttons .iconoir-share-ios {
    display: flex;
    align-items: right;
    justify-content: right;
    background-color: transparent;
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.iconoir-plus-circle:hover,
.sidebar-buttons .iconoir-share-ios:hover {
    color: var(--white-color);
}

.iconoir-plus-circle:active,
.sidebar-buttons .iconoir-share-ios:active {
    transform: scale(0.95);
}

/* Sidebar Buttons */
.sidebar-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: flex-direction 0.6s ease, padding 0.6s ease, margin 0.6s ease, box-shadow 0.6s ease;
    box-shadow: 0px 12px 20px -8px rgb(0 0 0 / 20%);
}

.sidebar.collapsed .sidebar-buttons {
    flex-direction: column;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 15px;
    margin-right: -10px; /* get rid of sidebar padding. we do it this way because we dont want to get rid of .sidebar padding */
    margin-left: -10px; /* get rid of sidebar padding */
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.sidebar-buttons-hidden {
    visibility: hidden;
}

/* Adjusting the position of the profile container in minimized sidebar */
.sidebar.collapsed .sidebar-content {
    padding: 10px;
}

.sidebar.collapsed #article-list {
    visibility: hidden;
}

.sidebar.collapsed .closed-beta-container {
    visibility: hidden;
    opacity: 0%;
}

.sidebar-content-centered {
    display: grid;
}

/* Closed Beta Advertisement */
.closed-beta-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: opacity .3s, visibility .3s;
    opacity: 100%;
}

.closed-beta-container .iconoir-laptop-dev-mode {
    font-size: 5em;
    color: var(--secondary-color);
}

.closed-beta-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--secondary-color);
}

#request-access-btn {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Shared Article Warning Banner Styles */
.shared-article-banner {
    display: flex;
    align-items: center;
    color: #155724;
    background-color: #d4edda;
    padding: 12px 16px;
    border-left: 6px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.shared-article-banner.hidden {
    opacity: 0;
    visibility: hidden;
}

.shared-article-banner p {
    margin: 0;
}

.shared-article-banner strong {
    font-weight: bold;
}

.shared-article-banner .iconoir-share-ios {
    font-size: 1.5em;
    margin-right: 12px;
}

/* Styles when user is not signed in */
.no-user .left-panel,
.no-user .divider {
    display: none;
}

.no-user .right-panel {
    grid-column: 1 / -1;
}

.no-user .right-panel {
    flex-grow: 1;
}

.no-user {
    grid-template-columns: 1fr;
    transition: grid-template-columns 0.3s ease;
}

/* Disabled Button */
button[type=submit].disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--grey-color);
}

/* Trash Button */
.trash-btn {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1em;
    transition: color 0.3s ease;
    display: none;
}

.trash-btn:hover {
    color: #ff1a1a;
}

/* Adjusting the visibility of new article and share buttons */
#new-article-btn,
#share-btn {
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.5s, color 0.3s, scale 0.3s;
}

#new-article-btn.fade-in,
#share-btn.fade-in {
    opacity: 1;
    visibility: visible;
}

