.room-creation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.room-creation-modal .modal-content {
    background: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.room-creation-modal h2 {
    color: #10b981;
    margin-bottom: 1rem;
}

.room-creation-modal h3 {
    color: #f3f4f6;
    margin-bottom: 1.5rem;
}

.share-section {
    background: #2c3e50;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-share a {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.social-share a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social-share a img {
    width: 24px;
    height: 24px;
}

.copy-link-section {
    display: flex;
    gap: 0.5rem;
}

.copy-link-section input {
    flex-grow: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f3f4f6;
    border-radius: 6px;
}

.copy-link-section button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-link-section button:hover {
    background: #2563eb;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* AI Options and Question Count Selector */
.ai-options {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-count-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.count-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #3b82f6;
    background: transparent;
    color: #3b82f6;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

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

.count-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.count-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f3f4f6;
    min-width: 60px;
    text-align: center;
}

/* Tag Cloud Styles */
.tag-cloud-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #3b82f6;
    color: white;
    border-radius: 16px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #ef4444;
    transform: scale(1.05);
}

.tag-input-container {
    position: relative;
}

.tag-input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f3f4f6;
    border-radius: 6px;
}

.tag-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.suggested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.suggested-tag {
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.suggested-tag:hover {
    background: rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

/* Question Actions */
.question-actions {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.question-actions button {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.questions-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.questions-header h4 {
    margin: 0;
    color: #f3f4f6;
}

.question-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.question-header h5 {
    margin: 0;
    color: #10b981;
}

.question-header button {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.correct-answer {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

.price-tag {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cell-icon {
    width: 10px;
    height: 10px;
    vertical-align: middle;
}

/* Input with regenerate button */
.input-with-regenerate {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.input-with-regenerate input,
.input-with-regenerate textarea {
    flex: 1;
}

.regenerate-btn {
    background: var(--primary-color, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.regenerate-btn:hover:not(:disabled) {
    background: var(--primary-hover, #2563eb);
}

.regenerate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Updated tag cloud styles - Bubble Design */
.tag-cloud-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.05));
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.tag-cloud::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(29, 78, 216, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #3b82f6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 8px rgba(59, 130, 246, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tag-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.tag-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 16px rgba(59, 130, 246, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.tag-item:hover::before {
    transform: scale(1);
}

.tag-check {
    color: #10b981;
    font-weight: bold;
    font-size: 0.75rem;
    background: radial-gradient(circle, #34d399, #10b981);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    position: relative;
}

.tag-check::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent);
    border-radius: 50%;
    z-index: -1;
}

.tag-remove {
    background: radial-gradient(circle, #f87171, #ef4444);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    position: relative;
}

.tag-remove::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3), transparent);
    border-radius: 50%;
    z-index: -1;
}

.tag-remove:hover {
    background: radial-gradient(circle, #fca5a5, #f87171);
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

.tag-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tag-input {
    flex: 1;
    padding: 0.625rem;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    border-radius: 8px;
    background: var(--bg-input, rgba(255, 255, 255, 0.05));
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.tag-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.tag-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-tag-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.add-tag-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.add-tag-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.suggested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.suggested-tags small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.suggested-tag {
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.15), rgba(29, 78, 216, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.suggested-tag::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.suggested-tag:hover {
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.25), rgba(29, 78, 216, 0.25));
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.suggested-tag:hover::before {
    transform: scale(1);
}

/* Room Scheduling Styles */
.room-scheduling-section {
    margin-bottom: 2rem;
}

.room-scheduling-section article {
    background: var(--bg-card, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 1.5rem;
}

.room-scheduling-section header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.room-scheduling-section header p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scheduling-section {
    margin-bottom: 1.5rem;
}

.scheduling-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    cursor: pointer;
}

.scheduling-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #3b82f6;
}

.scheduling-inputs {
    margin-left: 2rem;
    padding: 1rem;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
}

.auto-close-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.auto-close-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.02));
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auto-close-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auto-close-option:hover::before {
    opacity: 1;
}

.auto-close-option.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.auto-close-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #3b82f6;
    position: relative;
    z-index: 1;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.option-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.auto-close-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

.auto-close-option.selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.modal-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.modal-actions button:first-child {
    background: #10b981;
    color: white;
    border: none;
}

.modal-actions button:last-child {
    background: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-actions button:first-child:hover {
    background: #059669;
}

.modal-actions button:last-child:hover {
    background: rgba(255, 255, 255, 0.2);
}
