/* ====================================
   Design Platform Styles
   ==================================== */

.design-page {
    min-height: 100vh;
    padding: 90px 0 40px;
    position: relative;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}

.design-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.design-orb-1,
.design-orb-2,
.design-orb-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: float 25s infinite ease-in-out;
}

.design-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.design-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    animation-delay: 8s;
}

.design-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: 15s;
}

/* Container */
.design-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Header - Same design as sidebar */
.design-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    width: 100%;
    box-sizing: border-box;
}

.design-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, 
        #38bdf8 0%, 
        #22d3ee 25%,
        #c084fc 50%, 
        #c084fc 75%,
        #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 8s ease infinite;
    filter: drop-shadow(0 2px 20px rgba(56, 189, 248, 0.3));
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.design-title:hover {
    filter: drop-shadow(0 4px 24px rgba(56, 189, 248, 0.5));
    transform: translateY(-2px);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.design-subtitle {
    font-size: 17px;
    color: #CBD5E1;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.design-header:hover .design-subtitle {
    color: #E2E8F0;
    opacity: 1;
}

/* Questions Container - Same design as sidebar */
.questions-container {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    min-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
}

.questions-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.questions-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(135deg, 
        #38bdf8 0%, 
        #22d3ee 25%,
        #c084fc 50%, 
        #c084fc 75%,
        #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 8s ease infinite;
    filter: drop-shadow(0 2px 20px rgba(56, 189, 248, 0.3));
    cursor: text;
    letter-spacing: 0.5px;
    line-height: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    padding: 8px;
    border-radius: 8px;
    min-height: 40px;
}

.questions-title:hover {
    filter: drop-shadow(0 4px 24px rgba(56, 189, 248, 0.5));
    transform: translateY(-2px);
}

.questions-title:focus {
    filter: drop-shadow(0 4px 24px rgba(56, 189, 248, 0.5));
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
    outline: none;
}

.questions-title:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* Clear All Button - Same design as header buttons */
.btn-clear-all {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-all:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(4px);
    color: #ffffff;
}

.btn-clear-all svg {
    color: rgba(34, 211, 238, 0.8);
    transition: all 0.2s ease;
}

.btn-clear-all:hover svg {
    color: rgba(34, 211, 238, 1);
}

.questions-subtitle {
    font-size: 14px;
    color: #94A3B8;
    font-weight: 500;
}

.questions-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.empty-questions-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #64748B;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.empty-questions-state:hover {
    transform: translateY(-4px);
}

.empty-questions-state:hover svg {
    color: rgba(34, 211, 238, 0.8);
    transform: scale(1.1);
}

.empty-questions-state svg {
    margin-bottom: 20px;
    color: #475569;
    transition: all 0.3s ease;
}

.empty-message {
    font-size: 18px;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 14px;
    color: #64748B;
}

.question-section-header {
    margin: 24px 0 16px 0;
    padding: 12px 0;
    border-bottom: 2px solid rgba(34, 211, 238, 0.3);
}

.question-section-header:first-child {
    margin-top: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(34, 211, 238, 0.05) 100%);
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid rgba(34, 211, 238, 0.6);
}

.question-item {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.question-item:hover {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.question-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.question-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 4px;
}

.question-item-type {
    font-size: 12px;
    color: #94A3B8;
    background: rgba(59, 130, 246, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.question-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: auto;
}

.question-item-btn {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 10px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    width: auto !important;
    min-width: 40px !important;
    height: 40px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(34, 211, 238, 0) !important;
}

.question-item-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.5s ease;
}

.question-item-btn:hover::before {
    left: 100%;
}

.question-item-btn:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

.question-item-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2) !important;
}

/* All buttons use modern glassmorphism design - NEVER affected by form/question colors */
.question-item-actions {
    background: transparent !important;
}

.question-item-actions * {
    background: transparent !important;
}

.question-item-btn,
.edit-question,
.copy-question,
.delete-question {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(34, 211, 238, 0) !important;
}

.edit-question:hover,
.copy-question:hover,
.delete-question:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

/* Ensure buttons are NEVER affected by form/question color themes - Modern glassmorphism design */
#questionsList .question-item .question-item-actions,
#questionsContainer .question-item .question-item-actions {
    background: transparent !important;
}

#questionsList .question-item .question-item-btn,
#questionsList .question-item .edit-question,
#questionsList .question-item .copy-question,
#questionsList .question-item .delete-question,
#questionsContainer .question-item .question-item-btn,
#questionsContainer .question-item .edit-question,
#questionsContainer .question-item .copy-question,
#questionsContainer .question-item .delete-question {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(34, 211, 238, 0) !important;
}

#questionsList .question-item .question-item-btn:hover,
#questionsList .question-item .edit-question:hover,
#questionsList .question-item .copy-question:hover,
#questionsList .question-item .delete-question:hover,
#questionsContainer .question-item .question-item-btn:hover,
#questionsContainer .question-item .edit-question:hover,
#questionsContainer .question-item .copy-question:hover,
#questionsContainer .question-item .delete-question:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

#questionsList .question-item .question-item-btn svg,
#questionsList .question-item .edit-question svg,
#questionsList .question-item .copy-question svg,
#questionsContainer .question-item .question-item-btn svg,
#questionsContainer .question-item .edit-question svg,
#questionsContainer .question-item .copy-question svg {
    color: rgba(34, 211, 238, 0.9) !important;
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.3)) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 1 !important;
}

#questionsList .question-item .question-item-btn:hover svg,
#questionsList .question-item .edit-question:hover svg,
#questionsList .question-item .copy-question:hover svg,
#questionsContainer .question-item .question-item-btn:hover svg,
#questionsContainer .question-item .edit-question:hover svg,
#questionsContainer .question-item .copy-question:hover svg {
    color: rgba(34, 211, 238, 1) !important;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6)) !important;
    transform: scale(1.1) !important;
}

#questionsList .question-item .delete-question svg,
#questionsContainer .question-item .delete-question svg {
    color: rgba(239, 68, 68, 0.9) !important;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.3)) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 1 !important;
}

#questionsList .question-item .delete-question:hover svg,
#questionsContainer .question-item .delete-question:hover svg {
    color: rgba(239, 68, 68, 1) !important;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6)) !important;
    transform: scale(1.1) !important;
}

.question-item-meta {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.question-meta-item {
    font-size: 12px;
    color: #94A3B8;
    background: rgba(148, 163, 184, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.question-item-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(34, 211, 238, 0.9) !important;
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.3));
    position: relative;
    z-index: 1;
}

.question-item-btn:hover svg {
    color: rgba(34, 211, 238, 1) !important;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
    transform: scale(1.1);
}

.delete-question svg {
    color: rgba(239, 68, 68, 0.9) !important;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.3));
}

.delete-question:hover svg {
    color: rgba(239, 68, 68, 1) !important;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
    transform: scale(1.1);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Apply same design as color options to all header action buttons */
.header-actions .btn-secondary,
.header-actions .btn-primary,
.header-actions .btn-share,
.header-actions .btn-clear-all {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(34, 211, 238, 0) !important;
}

.header-actions .btn-secondary::before,
.header-actions .btn-primary::before,
.header-actions .btn-share::before,
.header-actions .btn-clear-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.header-actions .btn-secondary:hover::before,
.header-actions .btn-primary:hover::before,
.header-actions .btn-share:hover::before,
.header-actions .btn-clear-all:hover::before {
    left: 100%;
}

.header-actions .btn-secondary:focus,
.header-actions .btn-secondary:active,
.header-actions .btn-primary:focus,
.header-actions .btn-primary:active,
.header-actions .btn-share:focus,
.header-actions .btn-share:active,
.header-actions .btn-clear-all:focus,
.header-actions .btn-clear-all:active {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2) !important;
    border-color: rgba(34, 211, 238, 0.3) !important;
    transform: translateY(0) !important;
}

.header-actions .btn-secondary:hover,
.header-actions .btn-primary:hover,
.header-actions .btn-share:hover,
.header-actions .btn-clear-all:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

.header-actions .btn-secondary svg,
.header-actions .btn-primary svg,
.header-actions .btn-share svg,
.header-actions .btn-clear-all svg {
    color: rgba(34, 211, 238, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.header-actions .btn-secondary:hover svg,
.header-actions .btn-primary:hover svg,
.header-actions .btn-share:hover svg,
.header-actions .btn-clear-all:hover svg {
    color: rgba(34, 211, 238, 1);
}

.header-actions .btn-secondary span,
.header-actions .btn-primary span,
.header-actions .btn-share span,
.header-actions .btn-clear-all span {
    position: relative;
    z-index: 1;
}

/* Legacy btn-share styles - kept for backward compatibility but overridden above */
.btn-share {
    background: rgba(34, 211, 238, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.btn-share:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(4px);
    box-shadow: none;
}

/* Main Content Layout */
.design-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    min-height: calc(100vh - 250px);
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Sidebar */
.design-sidebar {
    grid-column: 1;
    grid-row: 1;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 110px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: block;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    min-width: 0;
}


/* Mobile Sidebar Toggle Button - Hidden on Desktop */

.mobile-hamburger-icon {
    display: block;
}


.mobile-sidebar-close {
    display: none;
}

.mobile-sidebar-overlay {
    display: none;
}

.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}


.sidebar-title {
    font-size: 19px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Form Elements in Sidebar */
.design-sidebar .form-group {
    margin-bottom: 20px;
}

/* Custom Color Dropdown */
.custom-color-dropdown {
    position: relative;
    width: 100%;
}

.color-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-dropdown-selected:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(4px);
}

.color-dropdown-selected.open {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.color-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.color-dropdown-selected span {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.dropdown-arrow {
    color: #94A3B8;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.color-dropdown-selected.open .dropdown-arrow {
    transform: rotate(180deg);
}

.color-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 320px;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.color-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.color-dropdown-item:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    color: #ffffff;
    transform: translateX(4px);
}

.color-dropdown-item.active {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
}

.color-dropdown-item span {
    color: inherit;
    font-size: 14px;
    font-weight: 500;
}

.color-dropdown-item:hover span {
    color: inherit;
}

/* Custom scrollbar for dropdown */
.color-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.color-dropdown-menu::-webkit-scrollbar-track {
    background: #0F172A;
    border-radius: 0 12px 12px 0;
}

.color-dropdown-menu::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.color-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

/* Custom Font Dropdown */
.custom-font-dropdown {
    position: relative;
    width: 100%;
}

.font-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-dropdown-selected:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(4px);
}

.font-dropdown-selected.open {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.font-dropdown-selected span {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.font-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.font-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.font-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.font-dropdown-item:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    color: #ffffff;
    transform: translateX(4px);
}

.font-dropdown-item.active {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
}

.font-dropdown-item span {
    color: #E2E8F0;
    font-size: 14px;
    font-weight: 500;
}

.font-dropdown-item:hover span {
    color: #F8FAFC;
}

/* Custom scrollbar for font dropdown */
.font-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.font-dropdown-menu::-webkit-scrollbar-track {
    background: #0F172A;
    border-radius: 0 12px 12px 0;
}

.font-dropdown-menu::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.font-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

/* Custom Category Dropdown */
.custom-category-dropdown {
    position: relative;
    width: 100%;
}

.category-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-dropdown-selected:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(4px);
}

.category-dropdown-selected.open {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #94A3B8;
    transition: color 0.3s ease;
}

.category-dropdown-selected:hover .category-icon,
.category-dropdown-item:hover .category-icon {
    color: #6366F1;
}

.category-dropdown-selected span {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.category-dropdown-selected.open .dropdown-arrow {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 360px;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.category-dropdown-item:last-child {
    border-bottom: none;
}

.category-dropdown-item:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    color: #ffffff;
    transform: translateX(4px);
}

.category-dropdown-item.active {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
}

.category-dropdown-item span {
    color: #E2E8F0;
    font-size: 14px;
    font-weight: 500;
}

.category-dropdown-item:hover span {
    color: #F8FAFC;
}

.category-dropdown-item.active span {
    color: #FFFFFF;
    font-weight: 600;
}

/* Custom scrollbar for category dropdown */
.category-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.category-dropdown-menu::-webkit-scrollbar-track {
    background: #0F172A;
    border-radius: 0 12px 12px 0;
}

.category-dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366F1 0%, #D8B4FE 100%);
    border-radius: 4px;
}

.category-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #A78BFA 0%, #D8B4FE 100%);
}

.design-sidebar .form-label {
    font-size: 12px;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.design-sidebar .form-input,
.design-sidebar .form-select {
    width: 100%;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

.design-sidebar .form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.design-sidebar .form-input:focus,
.design-sidebar .form-select:focus {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
    transform: translateX(4px);
}

.design-sidebar .form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.design-sidebar .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.design-sidebar .checkbox-label:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(4px);
}

.design-sidebar .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.design-sidebar .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(34, 211, 238, 0.4);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: rgba(34, 211, 238, 0.1);
}

.design-sidebar .checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.8) 0%, rgba(34, 211, 238, 0.6) 100%);
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.4);
}

.design-sidebar .checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.design-sidebar .checkbox-label span:last-child {
    color: #F8FAFC;
    font-size: 14px;
    font-weight: 500;
}

/* Question Types */
.question-types {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-type-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-type-category-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding: 0 4px;
}

.question-type-category-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.question-type-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.question-type-btn:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(4px);
    color: #ffffff;
}

.question-type-btn svg {
    color: rgba(34, 211, 238, 0.8);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.question-type-btn:hover svg {
    color: rgba(34, 211, 238, 1);
}

.badge-coming-soon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Voice Recorder Preview */
.voice-recorder-preview {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.recorder-status {
    font-size: 14px;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 15px;
}

.voice-record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border: 4px solid rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 15px;
    position: relative;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.voice-record-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5);
    border-color: rgba(239, 68, 68, 0.6);
}

.voice-record-btn.recording {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    animation: pulse 1.5s infinite;
}

.voice-record-btn.recording::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #EF4444;
    animation: ripple 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.mic-icon {
    color: #fff;
}

.voice-record-btn.recording .mic-icon {
    animation: micPulse 0.5s infinite alternate;
}

@keyframes micPulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.record-text {
    display: none;
    font-size: 14px;
    font-weight: 600;
    color: #F8FAFC;
    margin-top: 10px;
}

.recorder-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.recording-timer {
    font-size: 20px;
    font-weight: 700;
    color: #EF4444;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

.waveform-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    margin: 15px 0;
}

.waveform-bar {
    width: 4px;
    background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.recording-controls {
    display: none;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

.send-btn {
    background: linear-gradient(135deg, #22C55E 0%, #10B981 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.delete-btn {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* Stats */
.sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(4px);
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: rgba(34, 211, 238, 1);
    letter-spacing: -0.03em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    z-index: 10000;
}

/* Ensure dropdowns in modals appear below icons and buttons */
.modal-content .color-dropdown-menu,
.modal-content .font-dropdown-menu,
.modal-content .category-dropdown-menu {
    top: calc(100% + 16px) !important;
    z-index: 10002 !important;
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10003;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Apply same design technique to modal buttons */
.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(34, 211, 238, 0) !important;
}

.modal-footer .btn-secondary::before,
.modal-footer .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.modal-footer .btn-secondary:hover::before,
.modal-footer .btn-primary:hover::before {
    left: 100%;
}

.modal-footer .btn-secondary:focus,
.modal-footer .btn-secondary:active,
.modal-footer .btn-primary:focus,
.modal-footer .btn-primary:active {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2) !important;
    border-color: rgba(34, 211, 238, 0.3) !important;
    transform: translateY(0) !important;
}

.modal-footer .btn-secondary:hover,
.modal-footer .btn-primary:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%) !important;
    border-color: rgba(34, 211, 238, 0.5) !important;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%) !important;
    border-color: rgba(34, 211, 238, 0.7) !important;
}

/* Modal Form */
.modal-form-group {
    margin-bottom: 25px;
}

.modal-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.modal-form-group input,
.modal-form-group textarea,
.modal-form-group select {
    width: 100%;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    border-radius: 8px !important;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus,
.modal-form-group select:focus {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
    outline: none !important;
}

.modal-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Modal Checkbox Styles */
.modal-form-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.modal-form-group .checkbox-label:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.4);
}

.modal-form-group .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modal-form-group .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(96, 165, 250, 0.4);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.modal-form-group .checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

.modal-form-group .checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.modal-form-group .checkbox-label span:last-child {
    color: #E2E8F0;
    font-size: 14px;
    font-weight: 500;
}

/* Options Builder */
.options-builder {
    margin-top: 15px;
}

.option-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.option-input-group input {
    flex: 1;
}

.option-input-group .btn {
    flex-shrink: 0;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.option-item.correct {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

.option-text {
    flex: 1;
    color: #E2E8F0;
    font-weight: 500;
}

.option-actions {
    display: flex;
    gap: 5px;
}

.option-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.option-btn:hover::before {
    left: 100%;
}

.option-btn:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    color: rgba(34, 211, 238, 1) !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

.option-btn.delete:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #EF4444 !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3), 0 0 20px rgba(239, 68, 68, 0.2) !important;
}

.option-btn svg {
    position: relative;
    z-index: 1;
}


/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(34, 197, 94, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Share Modal Specific Styles */
.share-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.share-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    border-radius: 8px !important;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 15px;
    font-weight: 500;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.share-input:focus {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.share-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.share-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.share-option-btn:hover::before {
    left: 100%;
}

.share-option-btn:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

.share-option-btn svg,
.share-option-btn span {
    position: relative;
    z-index: 1;
}

.share-option-btn svg {
    color: #3B82F6;
}

.share-option-btn span {
    font-size: 14px;
    font-weight: 700;
    color: #F1F5F9;
}

/* Active Nav Link */
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
    .design-content {
        grid-template-columns: 280px 1fr;
    }
    
    .design-sidebar {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
    }
    
}

/* Desktop - Ensure grid positioning */
@media (min-width: 993px) {
    .design-content {
        display: grid !important;
        grid-template-columns: 320px 1fr !important;
        gap: 30px !important;
        align-items: start !important;
    }
    
    .design-sidebar {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
        position: sticky !important;
        top: 110px !important;
    }
}

@media (max-width: 992px) {
    .design-content {
        grid-template-columns: 1fr;
    }

    .questions-container {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 100%;
        min-height: calc(100vh - 200px);
    }

    .design-sidebar {
        position: static;
    }

    .design-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-actions .btn {
        flex: 1 1 calc(33.333% - 7px);
        min-width: calc(33.333% - 7px);
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .design-page {
        padding: 80px 0 20px;
    }

    .design-title {
        font-size: 28px;
        margin-bottom: 5px;
        letter-spacing: 0.3px;
    }

    .design-subtitle {
        font-size: 14px;
    }

    .design-container {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .design-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .questions-container {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .questions-header {
        flex-direction: column;
        gap: 12px;
    }

    .questions-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 0;
        letter-spacing: 0.3px;
    }

    .btn-clear-all {
        font-size: 13px;
        padding: 8px 14px;
    }

    .questions-subtitle {
        font-size: 13px;
    }

    .empty-questions-state {
        padding: 40px 15px;
    }

    .empty-message {
        font-size: 16px;
    }

    .empty-hint {
        font-size: 13px;
    }

    .question-item {
        padding: 16px;
    }

    .question-item-title {
        font-size: 14px;
    }

    .question-item-meta {
        gap: 8px;
    }

    .question-meta-item {
        font-size: 11px;
        padding: 3px 6px;
    }

    .question-item-actions {
        flex-direction: column;
        gap: 8px;
        width: auto;
        min-width: auto;
        align-items: stretch;
        justify-content: flex-start;
        flex-shrink: 0;
    }

    .question-item-btn {
        width: auto;
        min-width: 36px;
        height: 36px;
        padding: 8px;
        font-size: 11px;
        justify-content: center;
        border-width: 1px;
        border-radius: 6px;
        gap: 0;
        box-shadow: none;
        font-weight: 500;
        white-space: nowrap;
        background: rgba(34, 211, 238, 0.1);
        border-color: rgba(34, 211, 238, 0.2);
    }
    
    .question-item-btn:hover {
        background: rgba(34, 211, 238, 0.2);
        border-color: rgba(34, 211, 238, 0.4);
        transform: translateX(4px);
    }

    .question-item-btn svg {
        width: 16px;
        height: 16px;
        color: rgba(34, 211, 238, 0.8);
    }
    
    .question-item-btn:hover svg {
        color: rgba(34, 211, 238, 1);
    }
    
    .delete-question:hover svg {
        color: rgba(239, 68, 68, 1);
    }

    .header-content {
        width: 100%;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: center;
        order: 1;
    }

    .header-actions .btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 2px;
        min-height: 70px;
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        background: rgba(34, 211, 238, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(34, 211, 238, 0.3);
        border-radius: 10px;
        font-size: 11px;
        font-weight: 600;
        color: #ffffff;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2);
        position: relative;
        overflow: hidden;
        text-align: center;
        line-height: 1.2;
    }


    .header-actions .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(34, 211, 238, 0.25);
        background-size: 200% 100%;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
        border-radius: 12px;
    }

    .header-actions .btn:hover {
        transform: translateY(-2px);
        border-color: rgba(34, 211, 238, 0.5);
        border-width: 1px;
        background: rgba(34, 211, 238, 0.25);
        box-shadow: 
            0 4px 12px rgba(34, 211, 238, 0.3),
            inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
    }

    .header-actions .btn:hover::before {
        opacity: 1;
    }

    .header-actions .btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.4));
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .header-actions .btn:hover svg {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5));
    }

    .header-actions .btn > * {
        position: relative;
        z-index: 1;
    }

    .header-actions .btn {
        text-align: center;
    }

    /* توحيد لون جميع الأزرار مثل Model */
    .header-actions .btn-share,
    .header-actions .btn-primary {
        background: rgba(34, 211, 238, 0.15);
        border-color: rgba(34, 211, 238, 0.3);
    }

    .header-actions .btn-share:hover,
    .header-actions .btn-primary:hover {
        background: rgba(34, 211, 238, 0.25);
        border-color: rgba(34, 211, 238, 0.5);
        border-width: 1px;
    }

    .design-sidebar {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: fixed !important;
        max-height: none;
        overflow: visible;
    }
    
    .design-content {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        overflow-x: hidden;
    }

    .question-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .question-type-btn {
        padding: 12px 10px;
        font-size: 13px;
    }

    .question-type-btn svg {
        width: 20px;
        height: 20px;
    }

    .sidebar-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    /* Hide "Interview Settings" title on mobile */
    .sidebar-section:first-of-type .sidebar-title {
        display: none;
    }

    /* No need for extra padding-top since sidebar already has padding-top: 80px */
    .sidebar-section:first-of-type {
        padding-top: 0;
    }

    .form-elements-sidebar {
        max-height: none;
        overflow: visible;
    }

    .elements-list {
        max-height: none;
        overflow: visible;
    }

    .elements-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-element-item {
        padding: 12px;
        font-size: 13px;
    }

    .settings-content {
        display: block !important;
        visibility: visible !important;
        max-height: none !important;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .form-input,
    .custom-color-dropdown,
    .custom-font-dropdown,
    .custom-category-dropdown {
        font-size: 14px;
        padding: 10px 12px;
    }

    .modal-content {
        max-width: 100%;
        margin: 0 10px;
        width: calc(100% - 20px);
    }

    .toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .share-options {
        grid-template-columns: 1fr;
    }

    .share-link-container {
        flex-direction: column;
    }

    .share-link-container .btn {
        width: 100%;
    }

    .voice-recorder-preview {
        padding: 20px;
    }

    .voice-record-btn {
        width: 70px;
        height: 70px;
    }

    .mic-icon {
        width: 24px;
        height: 24px;
    }

    .recording-timer {
        font-size: 18px;
    }

    .waveform-preview {
        height: 35px;
        gap: 2px;
    }

    .waveform-bar {
        width: 3px;
    }

    .recording-controls {
        gap: 10px;
    }

    .control-btn {
        padding: 10px 18px;
        font-size: 14px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .design-container {
        padding: 0 8px;
    }

    .design-header {
        padding: 15px 10px;
        gap: 12px;
    }
    
    /* Header actions buttons - same style as question-item-btn on small mobile */
    .header-actions {
        gap: 5px !important;
    }
    
    .header-actions .btn-secondary,
    .header-actions .btn-primary,
    .header-actions .btn-share,
    .header-actions .btn-clear-all {
        padding: 8px !important;
        width: auto !important;
        min-width: 36px !important;
        height: 36px !important;
        gap: 0 !important;
        justify-content: center !important;
    }
    
    .header-actions .btn-secondary .btn-text,
    .header-actions .btn-primary .btn-text,
    .header-actions .btn-share .btn-text,
    .header-actions .btn-clear-all .btn-text {
        display: none !important;
    }
    
    .header-actions .btn-secondary svg,
    .header-actions .btn-primary svg,
    .header-actions .btn-share svg,
    .header-actions .btn-clear-all svg {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }

    .questions-container {
        padding: 15px 10px;
        margin-bottom: 15px;
    }

    .questions-header {
        flex-direction: column;
        gap: 10px;
    }

    .questions-title {
        font-size: 22px;
        margin-bottom: 0;
        letter-spacing: 0.2px;
    }

    .btn-clear-all {
        font-size: 12px;
        padding: 8px 12px;
    }

    .questions-subtitle {
        font-size: 12px;
    }

    .empty-questions-state {
        padding: 30px 10px;
    }

    .empty-questions-state svg {
        width: 48px;
        height: 48px;
    }

    .empty-message {
        font-size: 14px;
    }

    .empty-hint {
        font-size: 12px;
    }

    .question-item {
        padding: 12px;
    }

    .question-item-title {
        font-size: 13px;
        flex: 1;
    }

    .question-item-header {
        gap: 10px;
    }

    .question-item-actions {
        flex-direction: column;
        gap: 6px;
        width: auto;
        min-width: 70px;
        max-width: 70px;
        align-items: stretch;
        justify-content: flex-start;
        flex-shrink: 0;
    }

    .question-item-btn {
        width: 100%;
        padding: 7px 10px;
        font-size: 10px;
        border-width: 1px;
        border-radius: 12px;
        gap: 5px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
        font-weight: 500;
        white-space: nowrap;
    }

    .question-item-btn svg {
        width: 10px;
        height: 10px;
    }

    .question-item-meta {
        gap: 6px;
    }

    .question-meta-item {
        font-size: 10px;
        padding: 2px 5px;
    }

    .question-item-actions {
        flex-direction: column;
        gap: 6px;
        width: auto;
        min-width: 70px;
        max-width: 70px;
        align-items: stretch;
        justify-content: flex-start;
        flex-shrink: 0;
    }

    .question-item-btn {
        width: auto;
        min-width: 32px;
        height: 32px;
        padding: 6px;
        font-size: 10px;
        justify-content: center;
        border-width: 1px;
        border-radius: 6px;
        gap: 0;
        box-shadow: none;
        font-weight: 500;
        white-space: nowrap;
        background: rgba(34, 211, 238, 0.1);
        border-color: rgba(34, 211, 238, 0.2);
    }
    
    .question-item-btn:hover {
        background: rgba(34, 211, 238, 0.2);
        border-color: rgba(34, 211, 238, 0.4);
        transform: translateX(4px);
    }

    .question-item-btn svg {
        width: 14px;
        height: 14px;
        color: rgba(34, 211, 238, 0.8);
    }
    
    .question-item-btn:hover svg {
        color: rgba(34, 211, 238, 1);
    }
    
    .delete-question:hover svg {
        color: rgba(239, 68, 68, 1);
    }

    .header-content {
        text-align: center;
    }

    .design-title {
        font-size: 22px;
        letter-spacing: 0.2px;
    }

    .design-subtitle {
        font-size: 12px;
    }

    .header-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .header-actions .btn {
        padding: 6px 2px;
        min-height: 65px;
        font-size: 8px;
        gap: 3px;
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        border: 1px solid rgba(34, 211, 238, 0.3);
    }

    .header-actions .btn svg {
        width: 16px;
        height: 16px;
    }

    /* Buttons maintain their natural HTML order */
    /* No need for CSS order - HTML order is already correct */

    .design-sidebar {
        padding: 12px;
    }

    .sidebar-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    /* Hide "Interview Settings" title on mobile */
    .sidebar-section:first-of-type .sidebar-title {
        display: none;
    }

    /* No need for extra padding-top since sidebar already has padding-top: 80px */
    .sidebar-section:first-of-type {
        padding-top: 0;
    }

    .sidebar-title {
        font-size: 16px;
    }

    .question-types {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .question-type-btn {
        padding: 12px;
        font-size: 13px;
    }


    .voice-recorder-preview {
        padding: 15px;
    }

    .voice-record-btn {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }

    .mic-icon {
        width: 20px;
        height: 20px;
    }

    .recorder-status {
        font-size: 12px;
    }

    .recording-timer {
        font-size: 14px;
    }

    .recording-controls {
        flex-direction: column;
        gap: 8px;
    }

    .control-btn {
        width: 100%;
        padding: 12px;
    }


    .modal-content {
        margin: 0 5px;
        max-width: calc(100% - 10px);
    }

    .modal-header {
        padding: 20px 15px;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .modal-footer {
        padding: 15px;
    }

    .waveform-preview {
        height: 30px;
        gap: 2px;
    }

    .waveform-bar {
        width: 2.5px;
    }

    .recording-controls {
        flex-direction: column;
        gap: 10px;
    }

    .control-btn {
        width: 100%;
        max-width: none;
        padding: 12px 20px;
    }
}

/* Fix for horizontal overflow and layout issues on mobile */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .design-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .design-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .design-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Header actions buttons - same style as question-item-btn on mobile */
    .header-actions {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    
    .header-actions .btn-secondary,
    .header-actions .btn-primary,
    .header-actions .btn-share,
    .header-actions .btn-clear-all {
        padding: 8px !important;
        width: auto !important;
        min-width: 36px !important;
        height: 36px !important;
        gap: 0 !important;
        justify-content: center !important;
    }
    
    .header-actions .btn-secondary .btn-text,
    .header-actions .btn-primary .btn-text,
    .header-actions .btn-share .btn-text,
    .header-actions .btn-clear-all .btn-text {
        display: none !important;
    }
    
    .header-actions .btn-secondary svg,
    .header-actions .btn-primary svg,
    .header-actions .btn-share svg,
    .header-actions .btn-clear-all svg {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }


    /* Mobile Sidebar Overlay */
    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Mobile Sidebar - Slide Panel from Left */
    .design-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        z-index: 10001 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transform: translateX(-100%) !important;
        -webkit-transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5) !important;
        background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-right: 1px solid rgba(148, 163, 184, 0.2) !important;
        border-left: none !important;
        padding: 20px !important;
        padding-top: 80px !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        direction: ltr !important; /* Force left-to-right direction */
    }

    .design-sidebar.mobile-open {
        transform: translateX(0) !important;
        -webkit-transform: translateX(0) !important;
        left: 0 !important;
        right: auto !important;
    }

    /* Mobile Sidebar Close Button */
    .mobile-sidebar-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: #fff;
        cursor: pointer;
        z-index: 10003;
        transition: all 0.3s ease;
    }

    .mobile-sidebar-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    .mobile-sidebar-close svg {
        width: 20px;
        height: 20px;
    }

    /* Hide sidebar on desktop */
    .design-content > .design-sidebar {
        display: none;
    }
    
    /* Show sidebar when mobile-open */
    .design-sidebar.mobile-open {
        display: block !important;
    }
    

    /* Ensure all sidebar content is interactive */
    .design-sidebar.mobile-open * {
        pointer-events: auto !important;
    }

    .design-sidebar.mobile-open input,
    .design-sidebar.mobile-open select,
    .design-sidebar.mobile-open textarea,
    .design-sidebar.mobile-open button,
    .design-sidebar.mobile-open .checkbox-label,
    .design-sidebar.mobile-open .custom-color-dropdown,
    .design-sidebar.mobile-open .custom-font-dropdown,
    .design-sidebar.mobile-open .custom-category-dropdown,
    .design-sidebar.mobile-open .question-type-btn {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Ensure dropdowns work correctly */
    .design-sidebar.mobile-open .color-dropdown-menu,
    .design-sidebar.mobile-open .font-dropdown-menu,
    .design-sidebar.mobile-open .category-dropdown-menu {
        z-index: 10004 !important;
        position: absolute !important;
    }
}

/* Ensure Navigation Menu works in design.html */
.main-nav {
    z-index: 9999 !important;
    position: fixed !important;
}

.nav-container {
    z-index: 9999 !important;
    position: relative !important;
}

.nav-menu-wrapper {
    z-index: 10000 !important;
    position: relative !important;
}

.nav-menu-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.nav-menu-toggle * {
    pointer-events: none !important;
}

.nav-links {
    z-index: 10000 !important;
    pointer-events: auto !important;
}

.nav-link {
    pointer-events: auto !important;
    cursor: pointer !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   Dashboard Styles
   ==================================== */

/* Remove blue outline/glow on all buttons in dashboard */
.design-page button:focus,
.design-page button:active,
.design-page .btn:focus,
.design-page .btn:active,
.design-page .quick-action-btn:focus,
.design-page .quick-action-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
}

/* Remove focus outline from all interactive elements in dashboard */
.design-page *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px 0;
    background: linear-gradient(135deg, #3B82F6 0%, #A78BFA 50%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: #94A3B8;
    font-weight: 500;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.dashboard-card-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.dashboard-card-body {
    padding: 24px;
}

.btn-small {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(34, 211, 238, 0) !important;
}

.btn-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-small:hover::before {
    left: 100%;
}

.btn-small:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

.btn-small:focus,
.btn-small:active {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2) !important;
    border-color: rgba(34, 211, 238, 0.3) !important;
    transform: translateY(0) !important;
}

.interview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interview-item {
    padding: 16px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.interview-item:hover {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.interview-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.interview-meta {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-completed {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.chart-container {
    height: 300px;
    position: relative;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-btn {
    padding: 20px;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(34, 211, 238, 0) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: inherit;
    outline: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:focus,
.quick-action-btn:active {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2) !important;
    border-color: rgba(34, 211, 238, 0.3) !important;
    transform: translateY(0) !important;
}

.quick-action-btn:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.2) !important;
}

.quick-action-btn svg {
    color: rgba(34, 211, 238, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.quick-action-btn:hover svg {
    color: rgba(34, 211, 238, 1);
    transform: scale(1.1);
}

.quick-action-btn span {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

/* ====================================
   Left Icon (Settings) - Mobile Styles
   Apply same design as language icon
   ==================================== */

/* Desktop: Show desktop icon (icon10), hide mobile icon (icon11) */
.left-icon-desktop {
    display: block;
}

.left-icon-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* Show left icon on mobile */
    .left-icon-wrapper {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 85px !important;
        left: 20px !important;
        z-index: 1000 !important;
        background: transparent !important;
    }
    
    .left-icon-button {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        opacity: 0.95 !important;
        overflow: visible !important;
    }
    
    /* Soft gradient/glow background behind icon - same as language icon */
    .left-icon-button::before {
        content: '' !important;
        position: absolute !important;
        width: 80px !important;
        height: 80px !important;
        background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%) !important;
        border-radius: 50% !important;
        top: -12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25) !important;
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        z-index: 0 !important;
        filter: blur(8px) !important;
        animation: iconGlowPulse 3s ease-in-out infinite !important;
    }
    
    .left-icon-button:hover::before {
        box-shadow: 0 8px 35px rgba(34, 211, 238, 0.5) !important;
        transform: translateX(-50%) scale(1.15) !important;
        filter: blur(12px) !important;
    }
    
    .left-icon-button:hover {
        opacity: 1 !important;
        transform: translateY(-12px) !important;
    }
    
    .left-feature-icon {
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        position: relative !important;
        z-index: 1 !important;
        backdrop-filter: none !important;
        border-radius: 50% !important;
        padding: 0 !important;
        border: 1.5px solid rgba(34, 211, 238, 0.4) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
        margin: 0 auto !important;
        overflow: hidden !important;
        background: linear-gradient(135deg, 
            rgba(34, 211, 238, 0.25) 0%, 
            rgba(34, 211, 238, 0.1) 100%) !important;
    }
    
    .left-icon-image {
        flex-shrink: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        object-fit: cover !important;
        object-position: center !important;
        filter: drop-shadow(0 2px 8px rgba(34, 211, 238, 0.3)) !important;
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* Show mobile icon (icon11), hide desktop icon (icon10) on mobile */
    .left-icon-desktop {
        display: none !important;
    }
    
    .left-icon-mobile {
        display: block !important;
    }
    
    .left-icon-button:hover .left-feature-icon {
        transform: scale(1.15) rotate(3deg) !important;
        backdrop-filter: none !important;
        border-color: rgba(34, 211, 238, 0.6) !important;
        box-shadow: 
            0 12px 40px rgba(34, 211, 238, 0.4),
            0 4px 12px rgba(34, 211, 238, 0.3) !important;
        background: linear-gradient(135deg, 
            rgba(34, 211, 238, 0.35) 0%, 
            rgba(34, 211, 238, 0.15) 100%) !important;
        animation: iconFloat 2s ease-in-out infinite !important;
    }
    
    .left-icon-button:hover .left-icon-image {
        filter: drop-shadow(0 4px 16px rgba(34, 211, 238, 0.6)) brightness(1.1) !important;
        transform: scale(1.05) !important;
    }
    
    .left-icon-button:focus {
        outline: none !important;
    }
    
    .left-icon-button[aria-expanded="true"] .left-icon-image {
        filter: drop-shadow(0 4px 16px rgba(34, 211, 238, 0.6)) brightness(1.1) !important;
    }
    
    .left-icon-button[aria-expanded="true"] .left-feature-icon {
        border-color: rgba(34, 211, 238, 0.6) !important;
        box-shadow: 
            0 12px 40px rgba(34, 211, 238, 0.4),
            0 4px 12px rgba(34, 211, 238, 0.3) !important;
        background: linear-gradient(135deg, 
            rgba(34, 211, 238, 0.35) 0%, 
            rgba(34, 211, 238, 0.15) 100%) !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller icon sizes on small mobile - same as language icon */
    .left-icon-wrapper {
        top: 75px !important;
        left: 10px !important;
    }
    
    .left-icon-button::before {
        width: 70px !important;
        height: 70px !important;
    }
    
    .left-feature-icon {
        width: 55px !important;
        height: 55px !important;
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 1) 0%, 
            rgba(20, 20, 35, 1) 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1.5px solid rgba(34, 211, 238, 0.4) !important;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.1),
            0 2px 8px rgba(34, 211, 238, 0.2) !important;
    }
    
    .left-icon-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .left-icon-button:hover .left-feature-icon,
    .left-icon-button[aria-expanded="true"] .left-feature-icon {
        background: linear-gradient(135deg, 
            rgba(20, 20, 35, 0.98) 0%, 
            rgba(15, 15, 28, 0.98) 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Animation keyframes for icon effects */
@keyframes iconGlowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: scale(1.15) rotate(3deg) translateY(0);
    }
    50% {
        transform: scale(1.15) rotate(3deg) translateY(-5px);
    }
}
