/* Create Page Styling */

.create-header {
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.create-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.create-tabs {
    display: flex;
    background-color: #272729;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #343536;
}

.create-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    color: #818384;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.create-tab:hover {
    color: #d7dadc;
    background-color: rgba(255, 255, 255, 0.05);
}

.create-tab.active {
    color: #ffffff;
    background-color: #4c9aff;
}

.tab-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.tab-content-container {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* Community Selection */
.community-selection {
    margin-bottom: 20px;
    max-width: 400px;
}



/* Post Content Form */
.post-content-form {
    background-color: #1a1a1b;
    width: 100%;
    border: 1px solid #343536;
    border-radius: 8px;
    padding: 20px;
}

/* Lair Content Form */
.lair-content-form {
    background-color: #1a1a1b;
    width: 100%;
    border: 1px solid #343536;
    border-radius: 8px;
    padding: 20px;
}

/* Post Settings */
.post-settings {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Lair Settings */
.lair-settings {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-label {
    color: #d7dadc;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.setting-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-option:hover {
    background-color: #343536;
    border-color: #4c4c4d;
}

.setting-option input[type="radio"] {
    margin: 0;
    accent-color: #4c9aff;
}

.setting-option input[type="radio"]:checked + .option-text {
    color: #4c9aff;
    font-weight: 600;
}

.option-text {
    color: #d7dadc;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s ease;
}

.option-description {
    color: #818384;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    margin-top: 2px;
}

/* Title Section */
.title-section {
    margin-bottom: 16px;
}

.title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.title-label {
    color: #d7dadc;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.char-count {
    color: #818384;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.title-input {
    width: 100%;
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 4px;
    padding: 12px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.title-input:focus {
    outline: none;
    border-color: #4c9aff;
    box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

.title-input::placeholder {
    color: #818384;
}

/* AI Analysis Section */
.ai-analysis-section {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.analyze-tool-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #4c9aff;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analyze-tool-btn:hover:not(:disabled) {
    background-color: #3b82f6;
}

.analyze-tool-btn:active:not(:disabled) {
    background-color: #2563eb;
}

.analyze-tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #4c9aff;
}

.analyze-tool-btn.loading {
    pointer-events: none;
}

.analyze-icon {
    stroke: currentColor;
    flex-shrink: 0;
}

.analyze-text {
    display: inline;
}

.analyze-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.analyze-tool-btn.loading .analyze-text {
    display: none;
}

.analyze-tool-btn.loading .analyze-loading {
    display: flex;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.analyze-hint {
    color: #818384;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.analyze-wait-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4c9aff;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 8px 12px;
    background-color: rgba(76, 154, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid #4c9aff;
    animation: fadeIn 0.3s ease-in;
}

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

/* Upload Section */
.upload-section {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    align-items: flex-start;
}

/* Icon Upload Area */
.icon-upload-area {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
    min-width: 120px;
    min-height: 120px;
}

/* Banner Preview */
.banner-preview {
    margin-top: 12px;
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 1; /* 5:1 aspect ratio for banner */
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #343536;
}

.banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-preview .remove-file-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.banner-preview .remove-file-btn:hover {
    background-color: rgba(255, 107, 53, 0.9);
}

/* Icon Preview */
.icon-preview {
    margin-top: 12px;
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* allow the remove button to sit outside the circular frame */
    overflow: visible;
    border: 2px solid #343536;
    flex-shrink: 0;
    min-width: 120px;
    min-height: 120px;
}

.icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ensure the preview image itself is circular even if the container allows overflow */
.icon-preview img {
    border-radius: 50%;
}

/* indicate preview is clickable to replace image */
.icon-preview {
    cursor: pointer;
}

.icon-preview .remove-file-btn {
    position: absolute;
    /* pop the button outside the circle so it's always visible */
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.6);
    background-color: #111;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.icon-preview .remove-file-btn:hover {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.upload-header {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
}

.upload-label {
    color: #d7dadc;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.upload-limit-text {
    color: #818384;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.upload-area {
    width: 200px;
    height: 200px;
    border: 2px dashed #343536;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #272729;
    position: relative;
    transition: all 0.2s ease;
}

.upload-area:hover {
    border-color: #4c9aff;
    background-color: #343536;
}

.upload-area.dragover {
    border-color: #4c9aff;
    background-color: rgba(76, 154, 255, 0.1);
}

/* Make icon-style upload areas circular and smaller */
.upload-area.icon-upload-area {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    padding: 8px;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.upload-icon {
    color: #818384;
    transition: color 0.2s ease;
}

.upload-area:hover .upload-icon {
    color: #4c9aff;
}

.upload-text {
    color: #818384;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s ease;
}

.upload-area:hover .upload-text {
    color: #d7dadc;
}

/* File Preview Styling */
.file-preview-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background-color: #1a1a1b;
    border: 2px solid #212122;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px #161616;
}

.placeholder-image {
    width: 280px;
    height: 280px;
    border: 2px dashed #343536;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #272729;
    color: #818384;
    text-align: center;
}

.placeholder-icon {
    color: #818384;
}

.placeholder-text {
    color: #818384;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Generation Parameters Styling */
.generation-params-section {
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    max-width: 600px;
}

.params-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.params-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.toggle-params-btn {
    background: none;
    border: none;
    color: #818384;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toggle-params-btn:hover {
    background-color: #343536;
    color: #d7dadc;
}

.toggle-params-btn.collapsed svg {
    transform: rotate(-90deg);
}

.params-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.params-content.collapsed {
    display: none;
}

.params-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.param-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 120px;
}

.param-label {
    color: #d7dadc;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}


.param-input {
    background-color: #1a1a1b;
    border: 1px solid #343536;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.param-input:focus {
    outline: none;
    border-color: #4c9aff;
    box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

.param-textarea {
    background-color: #1a1a1b;
    border: 1px solid #343536;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    min-height: 80px;
    resize: vertical;
}

.param-textarea:focus {
    outline: none;
    border-color: #4c9aff;
    box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

.param-textarea::placeholder {
    color: #818384;
}

/* Searchable Dropdown Styling */
.searchable-dropdown {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.dropdown-input {
    background-color: #1a1a1b;
    border: 1px solid #343536;
    border-radius: 4px;
    padding: 8px 32px 8px 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-input:focus {
    outline: none;
    border-color: #4c9aff;
    box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

.dropdown-input::placeholder {
    color: #818384;
}

.dropdown-input.valid {
    border-color: #4c9aff;
}

.dropdown-input.valid:focus {
    border-color: #4c9aff;
    box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

.dropdown-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #818384;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.searchable-dropdown.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #272729;
    border: 1px solid #343536;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.searchable-dropdown.open .dropdown-options {
    display: block;
}

.dropdown-option {
    padding: 8px 12px;
    color: #d7dadc;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #343536;
}

.dropdown-option.selected {
    background-color: #4c9aff;
    color: #ffffff;
}

.dropdown-option.hidden {
    display: none;
}

/* Enhanced dropdown option content for community selection */
.dropdown-option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.lair-name {
    font-weight: 500;
    font-size: 14px;
    color: #d7dadc;
    line-height: 1.2;
}

.lair-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 8px;
}

.member-count {
    color: #818384;
    font-weight: 400;
}

.nsfw-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.nsfw-safe {
    display: none; /* Hide safe badges since they're the default */
}

.nsfw-semi_nsfw {
    background-color: #fff3cd;
    color: #856404;
}

.nsfw-nsfw {
    background-color: #f8d7da;
    color: #721c24;
}

/* Adjust dropdown option hover and selected states for enhanced content */
.dropdown-option:hover .lair-name {
    color: #ffffff;
}

.dropdown-option:hover .member-count {
    color: #d7dadc;
}

.dropdown-option.selected .lair-name {
    color: #ffffff;
}

.dropdown-option.selected .member-count {
    color: rgba(255, 255, 255, 0.8);
}

/* Dynamic Parameters Styling */
.dynamic-params-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dynamic-param-item {
    background-color: #1a1a1b;
    border: 1px solid #343536;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    position: relative;
}

.dynamic-param-label {
    color: #d7dadc;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    min-width: 80px;
}

.dynamic-param-input {
    background-color: #272729;
    border: 1px solid #4c4c4d;
    border-radius: 4px;
    padding: 4px 8px;
    color: #ffffff;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    flex: 1;
    min-width: 60px;
}

.dynamic-param-input:focus {
    outline: none;
    border-color: #4c9aff;
    box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

.dynamic-param-textarea {
    background-color: #272729;
    border: 1px solid #4c4c4d;
    border-radius: 4px;
    padding: 4px 8px;
    color: #ffffff;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    flex: 1;
    min-width: 120px;
    min-height: 40px;
    resize: vertical;
}

.dynamic-param-textarea:focus {
    outline: none;
    border-color: #4c9aff;
    box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

.remove-param-btn {
    background: none;
    border: none;
    color: #818384;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.remove-param-btn:hover {
    background-color: #ff6b35;
    color: #ffffff;
}

.remove-param-btn svg {
    width: 12px;
    height: 12px;
}

/* Selected Tools Container Styling */
.selected-tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-tool-tag {
    background-color: #4c9aff;
    border: 1px solid #4c9aff;
    border-radius: 16px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    position: relative;
}

.tool-tag-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.tool-tag-name {
    color: #ffffff;
    font-weight: 600;
}

.remove-tool-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

.remove-tool-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.remove-tool-btn svg {
    width: 10px;
    height: 10px;
}

.file-preview-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 285px;
    max-height: 285px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #1a1a1b;
    border: 2px solid #212122;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px #161616;
}

.file-preview {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #343536;
    background-color: #272729;
    display: block;
}

.remove-file-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.remove-file-btn:hover {
    background-color: rgba(255, 107, 53, 0.9);
}

/* Post Tool Selection */
.post-tool-selection {
    margin-top: 20px;
    margin-bottom: 20px;
}

.tool-selection-header {
    margin-bottom: 12px;
}

.tool-selection-label {
    color: #d7dadc;
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.tool-selection-subtitle {
    color: #818384;
    font-size: 14px;
}

.selected-post-tools {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: #ff6b35;
    color: #ffffff;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.post-tool-tag .remove-tool-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-tool-tag .remove-tool-btn:hover {
    color: #ffcccc;
}

/* Editor Section */
.editor-section {
    margin-bottom: 20px;
}

.editor-header {
    margin-bottom: 8px;
}

.editor-label {
    color: #d7dadc;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.post-editor {
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 4px;
    min-height: 200px;
}

/* Quill Editor Customization */
.ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #343536;
    background-color: #272729;
    padding: 8px 12px;
}

.ql-container.ql-snow {
    border: none;
    background-color: #272729;
    color: #d7dadc;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.ql-editor {
    color: #d7dadc;
    background-color: #272729;
    min-height: 150px;
    padding: 12px;
}

.ql-editor.ql-blank::before {
    color: #818384;
    font-style: normal;
}

.ql-toolbar .ql-stroke {
    stroke: #d7dadc;
}

.ql-toolbar .ql-fill {
    fill: #d7dadc;
}

.ql-toolbar button:hover {
    background-color: #343536;
    border-radius: 3px;
}

.ql-toolbar button.ql-active {
    background-color: #4c9aff;
    border-radius: 3px;
}

.ql-toolbar button.ql-active .ql-stroke {
    stroke: #ffffff;
}

.ql-toolbar button.ql-active .ql-fill {
    fill: #ffffff;
}

/* Link tooltip positioning */
.ql-tooltip {
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000;
}

.ql-tooltip.ql-editing {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #343536;
}

.save-draft-btn,
.post-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.save-draft-btn {
    background-color: transparent;
    color: #818384;
    border: 1px solid #343536;
}

.save-draft-btn:hover:not(:disabled) {
    background-color: #343536;
    color: #d7dadc;
    border-color: #4c4c4d;
}

.post-btn {
    background-color: #4c9aff;
    color: #ffffff;
}

.post-btn:hover:not(:disabled) {
    background-color: #3b82f6;
}

.save-draft-btn:disabled,
.post-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .create-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .create-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .create-tab {
        flex: 1;
        justify-content: center;
    }
    
    .post-content-form,
    .lair-content-form {
        padding: 16px;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .save-draft-btn,
    .post-btn {
        width: 100%;
        justify-content: center;
    }
    
    .setting-options {
        gap: 6px;
    }
    
    .setting-option {
        padding: 10px;
    }
    
    .icon-upload-area {

        min-width: 100px;
        min-height: 100px;
    }
    
    .icon-preview {

        border-radius: 50%;
        min-width: 100px;
        min-height: 100px;
    }
    
    .banner-preview {
        aspect-ratio: 4 / 1; /* Slightly less wide on mobile */
    }
}

@media (max-width: 480px) {
    .create-title {
        font-size: 20px;
    }
    
    .create-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tab-icon {
        width: 16px;
        height: 16px;
    }
    
    .title-input {
        font-size: 14px;
    }
    
    .post-editor {
        min-height: 120px;
    }
    
    .setting-option {
        padding: 8px;
        gap: 8px;
    }
    
    .option-text {
        font-size: 13px;
    }
    
    .option-description {
        font-size: 11px;
    }
    
    .icon-upload-area {
        min-width: 80px;
        min-height: 80px;
    }
    
    .icon-preview {
        border-radius: 50%;
        min-width: 80px;
        min-height: 80px;
    }
    
    .banner-preview {
        aspect-ratio: 3 / 1; /* Even less wide on small mobile */
    }
    
    .upload-text {
        font-size: 12px;
    }
}

    /* ---- Added for Tool Images Upload Group ---- */
    .images-upload-group {
        background-color: #1a1a1b;
        border: 1px solid #343536;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .group-header {
        margin-bottom: 8px;
    }

    .group-title {
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 8px 0;
        font-family: 'Roboto', sans-serif;
    }

    .upload-area.rect-upload-area {
        width: 360px;
        height: 200px;
        border-radius: 8px;
    }

    .rect-preview {
        margin-top: 12px;
        position: relative;
        width: 360px;
        height: 200px;
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid #343536;
    }

    .rect-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .rect-preview .remove-file-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: none;
        background-color: rgba(0, 0, 0, 0.7);
        color: #ffffff;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .rect-preview .remove-file-btn:hover {
        background-color: rgba(255, 107, 53, 0.9);
    }
