html, body {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

#root .radix-themes {
    height: 100%;
    width: 100%;
    display: flex;
}

.nav .nav-link {
    color: #000;
    opacity: 0.5;
}

.nav .nav-link.active {
    opacity: 1;
}

#ad_description, #blog-post-topic-container textarea, #blogPost_outline {
    min-height: 16rem;
}

a.card {
    text-decoration: none;
    transition: all 0.1s;
}
a.card:hover {
    border: 1px solid #2b7df8;
    background-color: hsl(216deg 94% 93%);
}

#ad-text-pos {
    border: 1px solid transparent;
    transition: border 0.1s;
    user-select: none;
}

#ad-text-pos:hover {
    border: 1px solid black;
}
#ad-preview-img {
    max-height: 300px;
    object-fit: cover;
}

.select-image img {
    border: 4px solid transparent;
}

.select-image .active {
    border: 4px solid #0d6efd;
}

label {
    font-weight: bold;
    font-size: 12px;
    color: rgb(75, 85, 99);
    user-select: none;
}

#new-message-container form {
    flex-wrap: wrap;
}
@media (min-width: 900px) {
    .generated-text-actions {
        opacity: 0;
        transition: opacity 0.15s ease;
    }
}

.generated-text-actions .material-icons {
    font-size: 18px;
}

.generated-text:hover .generated-text-actions {
    opacity: 1;
}

.generated-text .generated-text-actions a {
    color: #6c757d;
}

/* Generated text card polish */
.standalone-generator .generated-text {
    position: relative;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 4px;
    background: var(--card, #fff);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.standalone-generator .generated-text:hover {
    border-color: color-mix(in oklch, var(--foreground, #1a1a1a) 15%, transparent);
    box-shadow: 0 2px 8px color-mix(in oklch, var(--foreground, #1a1a1a) 4%, transparent);
}

.standalone-generator .generated-text textarea,
.standalone-generator .generated-text .rt-TextAreaRoot,
.standalone-generator .generated-text .rt-TextAreaChrome {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 8px;
    background: transparent;
}

.standalone-generator .generated-text textarea:focus {
    background: color-mix(in oklch, var(--muted, #f4f4f5) 50%, transparent);
}

.integrated-generator .generated-text:hover {
    border: 1px solid #2b7df8;
    background-color: hsl(216deg 94% 93%);
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    cursor: pointer;
    transform: scale(0.99);
    transition: all 0.2s;
}
.generated-text.is-used {
    border: 1px solid #2b7df8;
    background-color: hsl(216deg 94% 93%);
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    cursor: pointer;
    transform: scale(0);
    transition: all 0.3s;
}

.standalone-generator .generated-text-actions {
    position: absolute;
    top: -12px;
    right: 12px;
    transition: opacity 0.15s ease;
}

.integrated-generator .generated-text-actions {
    position: absolute;
    top: 12px;
    right: 12px;
}

#outline-loading-indicator div {
    margin-bottom: 1rem;
}

#outline-loading-indicator h2 {
    font-size: 1rem;
    font-weight: bold;
}


#draft h2 {
    font-size: 1rem;
    font-weight: bold;
}

#form-group-blogPost_keywords {
    position: relative;
}

#form-group-blogPost_keywords .spinner-border {
    position: absolute;
    top: 42px;
    left: 12px;
}

#blog-post-topic-container label {
    font-weight: 500;
    font-size: 1rem;
    color: #6c757d;
    display: block;
    margin-bottom: 1rem;
}

.workflow-step {
    opacity: 0.45;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 20px 22px;
    pointer-events: none;
}

.workflow-step.active {
    opacity: 1;
    border-color: var(--border, #e5e7eb);
    background: var(--card, #fff);
    pointer-events: auto;
}

#blog-post-editor-container {
    min-height: 100vh;
}
#blog-post-editor {
    position: relative;
    height: 100%;
}

#blog-post-editor h1 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

#blog-post-editor h2 {
    font-size: 1.25rem;
    font-weight: bold;
}


.editor-toolbar {
    position: sticky !important;
    background: white;
    z-index: 10000;
    left: 0;
    right: 0;
    top: 0;
}

#blog-post-editor h2 {
    position: relative;
}

#blog-post-editor h2 button {
    display: none;
    position: absolute;
    top: -6px;
    right: 0;
}

#blog-post-editor h2:hover button {
    display: inline-block;
}

#navbar-logo {
    height: 42px;
}

a .card-title {
    color: #17120a;
    font-size: 1rem;
    font-weight: bold;
}


.navbar-nav .nav-item .nav-link {
    font-weight: 500
}

.navbar-nav .nav-item .nav-link.active {
    color: rgb(0 0 0)
}

.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 1);
    padding-left: calc(var(--bs-gutter-x) * 1);
    margin-right: auto;
    margin-left: auto
}

.generated-text.is-favorite textarea {
    border: none;
}

.standalone-generator .generated-text.is-favorite {
    border-color: #0d6efd;
}

textarea[name="description"] {
    min-height: 16rem;   
}
.popover {
    --bs-popover-max-width: 600px;
}

.standalone-generator .generated-texts .generated-text textarea {
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.65;
}
.standalone-generator .card {
    min-height: 160px;
}

.back-to-documents-icon img {
    width: 32px;
}

.back-to-documents-icon {
    padding: 1rem;
    border-radius: 100%;
    display: inline-block;
    transition: all 0.1s;
}

.back-to-documents-icon:hover {
    background-color: hsl(216deg 94% 93%);
}

#file-header {
    color: rgb(75, 85, 99);
    padding-top: 1rem;
    display: flex;
    padding-bottom: 1.5rem;
}

#file-header img {
    height: 1rem;
}

img#cloud-sync-status {
    height: 24px;
}

#saving-changes {
    font-size: 14px;
    user-select: none;
}

.editor-toolbar {
    position: relative;
    padding: 1px 18px 17px;
    margin: 0 -20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    display: flex;
}

@media (min-width: 900px) {
}

.hovering-toolbar {
    position: absolute;
    z-index: 10000;
    top: -10000px;
    left: -10000px;
    margin-top: -6px;
    opacity: 0;
    background-color: rgb(37, 37, 37);
    border-radius: 4px;
    transition: opacity 0.5s;
    display: flex;
}

.hovering-toolbar .material-icons, .hovering-toolbar span {
    font-size: 18px !important;
}

.hovering-toolbar > span {
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
    transition: all 0.1s;
}

.hovering-toolbar > span:hover {
    background-color: rgba(255 255 255 / 0.155);
}

.hovering-toolbar > span.active {
    color: rgb(13 110 253);
}

.hovering-toolbar .expand {
    border-left: 1px solid rgba(255 255 255 / 0.155);

    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

#testimonials {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    grid-auto-rows: minmax(50px, auto);
    text-align: center;
}

#testimonials > div {
    text-align: center;
}

#testimonials img {
    height: 32px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.7;
}
#quotes figure {
    width: 320px;
    margin-left: 1rem;
}

#quotes .stars img {
    height: 1.5rem
}

#quotes .stars {
    margin-bottom: 1rem;
}

#quotes .verified img {
    height: 1rem;
    margin-right: 8px;
}

#quotes .verified {
    display: flex;
    align-items: center;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: rgb(3 161 154);
    font-weight: bold;
}

#company-dropdown {
    display: flex;
    align-items: center;
}

#company-dropdown img {
    height: 1rem;
}

#company-dropdown.dropdown-toggle::after {
    display: none;
}

.character-counter {
    color: #6c757d;
    opacity: 0.5;
    font-size: 12px;
    font-weight: 600;
}

/* Radio pill buttons for generator forms */
.standalone-generator .form-check-input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.standalone-generator .form-check-input[type="radio"] + .form-check-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground, #1a1a1a);
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.standalone-generator .form-check-input[type="radio"] + .form-check-label:hover {
    background: var(--muted, #f4f4f5);
    border-color: color-mix(in oklch, var(--foreground, #1a1a1a) 20%, transparent);
}

.standalone-generator .form-check-input[type="radio"]:checked + .form-check-label {
    background: var(--foreground, #1a1a1a);
    color: var(--card, #fff);
    border-color: var(--foreground, #1a1a1a);
    font-weight: 600;
}

.standalone-generator .form-check {
    padding-left: 0;
}

.label-and-character-counter {
    display: flex;
    justify-content: space-between;
}

.standalone-generator .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground, #1a1a1a);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.standalone-generator .workflow-step .btn.btn-primary {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 10px 20px;
    letter-spacing: -0.01em;
    transition: all 0.15s ease;
}

.standalone-generator .workflow-step .btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

textarea.long-text {
    min-height: 16rem;
}

.title-suggestions button {
    text-align: left;
}

.lengths img {
    height: 1rem;
}

.lengths button.selected {
    border: 1px solid #0d6efd !important;
}

.lengths button.btn.btn-outline-light:hover {
    border: 1px solid hsl(216deg 98% 86%);
}

.lengths button.btn.btn-outline-light {
    overflow: hidden;
    border: 1px solid white;
}


#upgrade-now-button svg {
}

.generated-text .voice {
    position: absolute;
    top: -8px;
    font-size: 10px;
    font-weight: 400;
    left: 30px;
}

.navbar .material-icons {
    font-size: 1rem;
}

#editor-sidebar .category {
    padding-bottom: 2rem;
}

#editor-sidebar .category h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}


#users-new #testimonials {
    opacity: 0.7;
}

#chat-prompt {
    resize: none;
}

#editor-sidebar-container {
    transition: all 0.2s;
}

@media (max-width: 1000px) {
    .atlaskit-portal-container div[role="menu"] {
        max-height: 300px !important;
    }
}

#startpage .card-title {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

#startpage .card-inner {
    overflow: hidden;
}

/* Sidebar polish */
[data-sidebar="sidebar"] {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    letter-spacing: -0.01em;
}

/* Menu items */
[data-sidebar="menu-button"] {
    font-size: 0.8125rem;
    border-radius: 8px;
    transition: background-color 0.12s ease, color 0.12s ease;
}

[data-sidebar="menu-button"] svg {
    opacity: 0.65;
    transition: opacity 0.12s ease;
}

[data-sidebar="menu-button"]:hover svg,
[data-sidebar="menu-button"][data-active="true"] svg {
    opacity: 1;
}

[data-sidebar="menu-button"][data-active="true"] {
    font-weight: 600;
}

/* Sub-menu items (history, pinned, templates) */
[data-sidebar="menu-sub"] {
    border-left-color: color-mix(in oklch, var(--sidebar-border) 60%, transparent);
}

[data-sidebar="menu-sub-button"] {
    font-size: 0.8125rem;
    border-radius: 6px;
    transition: background-color 0.12s ease;
}

[data-sidebar="menu-sub-button"] span {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-sidebar="menu-sub-button"] img {
    opacity: 0.6;
    transition: opacity 0.12s ease;
}

[data-sidebar="menu-sub-button"]:hover img {
    opacity: 1;
}

[data-sidebar="menu-sub-button"][data-active="true"] {
    font-weight: 600;
}

/* Collapsible chevrons */
[data-sidebar="menu-button"] .ml-auto {
    opacity: 0.4;
    transition: opacity 0.12s ease, transform 0.2s ease;
}

[data-sidebar="menu-button"]:hover .ml-auto {
    opacity: 0.7;
}

/* Footer cards (Trial, AI Adoption) */
[data-sidebar="footer"] [data-slot="card"] {
    border: 1px solid color-mix(in oklch, var(--sidebar-border) 70%, transparent);
    border-radius: 10px;
    background: color-mix(in oklch, var(--sidebar-accent) 40%, transparent);
}

/* User button in footer */
[data-sidebar="footer"] [data-sidebar="menu-button"][data-size="lg"] {
    border-radius: 10px;
}

/* Sidebar header */
[data-sidebar="header"] {
    padding-bottom: 4px;
}

/* Sidebar rail hover indicator */
[data-sidebar="rail"] {
    transition: background-color 0.15s ease;
}

[data-sidebar="rail"]:hover {
    background-color: color-mix(in oklch, var(--sidebar-border) 50%, transparent);
}