/* ============================================
   interactive-tools.css
   Shared styles for all interactive tools
   ============================================ */

/* Tool Interface Container */
.tool-interface {
    margin: 2rem 0;
}

/* Mode Selector Buttons */
.mode-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #263056;
    padding-bottom: 1rem;
}

.mode-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #718096;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.mode-btn.active {
    color: #2575fc;
    border-bottom: 2px solid #2575fc;
}

.mode-btn:hover:not(.active) {
    color: #9b9b9b;
}

/* Quiz/Survey Builder Containers */
.quiz-builder,
.survey-builder,
.poll-builder,
.personality-builder,
.assessment-builder {
    background: #0a0f2a;
    border-radius: 16px;
    border: 1px solid #263056;
    padding: 2rem;
}

/* Form Elements */
input[type="text"],
input[type="number"],
textarea,
select {
    background: #0e1433;
    border: 1px solid #263056;
    border-radius: 8px;
    color: #fff;
    padding: 0.75rem;
    width: 100%;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2575fc;
}

/* Question Items */
.question-item {
    background: #0e1433;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.question-item:hover {
    border-color: #2575fc;
}

/* Option Items */
.option-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.option-item input[type="text"] {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.option-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #718096;
    cursor: pointer;
}

.option-item input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Add/Remove Buttons */
.add-option,
.add-question {
    background: none;
    border: 1px solid #2575fc;
    color: #2575fc;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.add-option:hover,
.add-question:hover {
    background: rgba(37, 117, 252, 0.1);
}

.remove-question {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
}

.remove-question:hover {
    opacity: 0.7;
}

/* Generate Button */
.generate-btn {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.generate-btn:hover {
    transform: translateY(-1px);
}

/* Quiz Taker Interface */
.quiz-taker {
    background: #0a0f2a;
    border-radius: 16px;
    border: 1px solid #263056;
    padding: 2rem;
}

.quiz-question {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #0e1433;
    border-radius: 12px;
}

.quiz-question p {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.quiz-option input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.quiz-option label {
    cursor: pointer;
}

/* Results Display */
.quiz-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #0e1433;
    border-radius: 12px;
    text-align: center;
}

.quiz-result h3 {
    margin-bottom: 0.5rem;
    color: #2575fc;
}

.quiz-result p {
    margin-bottom: 1rem;
}

.result-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: #6a11cb;
    margin-bottom: 1rem;
}

.result-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Share Dialog */
.share-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0a0f2a;
    border: 1px solid #263056;
    border-radius: 16px;
    padding: 2rem;
    z-index: 1000;
    max-width: 90%;
    width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.share-dialog h3 {
    margin-bottom: 1rem;
}

.share-dialog input {
    background: #0e1433;
    border: 1px solid #263056;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
    color: white;
    margin-bottom: 1rem;
}

.share-dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.share-dialog-buttons button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.copy-btn {
    background: #2575fc;
    color: white;
    border: none;
}

.close-btn {
    background: none;
    border: 1px solid #263056;
    color: #718096;
}

/* Overlay for Share Dialog */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* How It Works Section */
.how-it-works {
    margin-top: 3rem;
    padding: 2rem;
    background: #0a0f2a;
    border-radius: 16px;
    border: 1px solid #263056;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.how-it-works-step {
    text-align: center;
}

.step-number {
    font-size: 2rem;
    background: #1a1f3a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    color: #2575fc;
}

/* Features Section */
.features-section {
    margin-top: 3rem;
    border-top: 1px solid #263056;
    padding-top: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 1.5rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #0e1433;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #263056;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #2575fc;
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-content h3 {
    margin: 0 0 6px 0;
    color: white;
    font-size: 1.1rem;
}

.feature-content p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
}

/* Differentiators Grid */
.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.differentiators-grid div {
    text-align: left;
}

.differentiators-grid strong {
    display: block;
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-builder,
    .survey-builder,
    .quiz-taker {
        padding: 1rem;
    }
    
    .question-item {
        padding: 1rem;
    }
    
    .option-item {
        flex-wrap: wrap;
    }
    
    .option-item input[type="text"] {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .mode-selector {
        justify-content: center;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .differentiators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    
    .differentiators-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .mode-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.success-message {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.error-message {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Copy Feedback */
.copy-feedback {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2575fc;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 1001;
    animation: fadeOut 2s ease forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* ============================================
   Interactive Tools - Global Font Styles
   ============================================ */

/* Base font for all interactive tools */
.tool-interface,
.quiz-builder,
.quiz-taker,
.how-it-works,
.features-section,
.differentiators,
.faq,
.semantic-keywords,
.keyword-content,
.related-content {
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Input elements - ensure consistent font */
.tool-interface input,
.tool-interface textarea,
.tool-interface select,
.tool-interface button,
.quiz-builder input,
.quiz-builder textarea,
.quiz-builder select,
.quiz-builder button,
.quiz-taker input,
.quiz-taker textarea,
.quiz-taker select,
.quiz-taker button {
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}


/* Simple uniform styling for all text inputs and textareas */
.quiz-builder input[type="text"],
.quiz-builder input[type="email"],
.quiz-builder input[type="number"],
.quiz-builder textarea {
    width: 100%;
    padding: 0.75rem;
    background: #0a0f2a;
    border: 1px solid #263056;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.quiz-builder input[type="text"]:focus,
.quiz-builder input[type="email"]:focus,
.quiz-builder input[type="number"]:focus,
.quiz-builder textarea:focus {
    border-color: #2575fc;
    outline: none;
}

.quiz-builder label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Results dashboard inputs */
#resultsQuizId,
.results-dashboard input {
    width: 100%;
    padding: 0.75rem;
    background: #0a0f2a;
    border: 1px solid #263056;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
}

#resultsQuizId:focus {
    border-color: #2575fc;
    outline: none;
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
}

.toast-notification.error {
    background: #ef4444;
}

.toast-notification.warning {
    background: #f59e0b;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

#quizSubmissionMessage button:hover {
    /*background: rgba(255,255,255,0.1);*/
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-radius: 50%;
}

/* Close button for quiz submission message */
.close-message-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.close-message-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.close-message-btn:active {
    transform: scale(0.95);
}
/* Scroll Arrow Styles for My Quizzes, Results, and Quiz Maker */
.scroll-container {
  position: relative;
  margin: 1rem 0;
}

.scroll-arrow {
  position: absolute;
  width: 32px;
  height: 32px;
  background: #0e1433;
  border: 1px solid #263056;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: white;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scroll-arrow:hover {
  background: linear-gradient(135deg, #2a34a8, #3f7cf3) !important;
  border-color: #3f7cf3 !important;
}

/* Up arrow (for vertical scroll) - positioned on the RIGHT side */
.scroll-arrow.up {
  top: -15px;
  right: 0px;
  left: auto;
  transform: none;
}

/* Down arrow (for vertical scroll) - positioned on the RIGHT side */
.scroll-arrow.down {
  bottom: -15px;
  right: 0px;
  left: auto;
  transform: none;
}

/* For the My Quizzes container - keep arrows on right side */
.my-quizzes-container .scroll-arrow.up,
.my-quizzes-container .scroll-arrow.down {
  right: 0px;
  left: auto;
}

/* For Results tab containers - also position on right side */
.user-quizzes-wrapper .scroll-arrow.up,
.user-quizzes-wrapper .scroll-arrow.down,
.submissions-wrapper .scroll-arrow.up,
.submissions-wrapper .scroll-arrow.down {
  right: 0px;
  left: auto;
}

/* Hide arrows by default on desktop, show via JS when needed */
.scroll-arrow {
  display: none;
}

/* Always show on mobile (optional) */
@media (max-width: 768px) {
  .scroll-arrow {
    display: flex !important;
  }
  
  .scroll-arrow.up,
  .scroll-arrow.down {
    right: -5px;
  }
}
/* Custom scrollbar styling for Quiz Maker - matching Business Tools */
#myQuizzesContainer,
#userQuizzesList,
#submissionsList {
    scrollbar-width: thin;
    scrollbar-color: #404FF7 #0e1433;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
#myQuizzesContainer::-webkit-scrollbar,
#userQuizzesList::-webkit-scrollbar,
#submissionsList::-webkit-scrollbar {
    width: 6px;
}

#myQuizzesContainer::-webkit-scrollbar-track,
#userQuizzesList::-webkit-scrollbar-track,
#submissionsList::-webkit-scrollbar-track {
    background: #0e1433;
    border-radius: 10px;
}

#myQuizzesContainer::-webkit-scrollbar-thumb,
#userQuizzesList::-webkit-scrollbar-thumb,
#submissionsList::-webkit-scrollbar-thumb {
    background: #404FF7;
    border-radius: 10px;
}

#myQuizzesContainer::-webkit-scrollbar-thumb:hover,
#userQuizzesList::-webkit-scrollbar-thumb:hover,
#submissionsList::-webkit-scrollbar-thumb:hover {
    background: #5a6aff;
}
.quizzes-container {
    position: relative;
    margin: 1rem 0;
}
/* Custom scrollbar styling for quizzes grid */
#quizzesGrid::-webkit-scrollbar {
  width: 6px;
}

#quizzesGrid::-webkit-scrollbar-track {
  background: #0e1433;
  border-radius: 10px;
}

#quizzesGrid::-webkit-scrollbar-thumb {
  background: #4299e1;
  border-radius: 10px;
}

#quizzesGrid::-webkit-scrollbar-thumb:hover {
  background: #5a9eff;
}

/* Also style the scrollbar for any other scrollable areas */
.quizzes-grid::-webkit-scrollbar {
  width: 6px;
}

.quizzes-grid::-webkit-scrollbar-track {
  background: #0e1433;
  border-radius: 10px;
}

.quizzes-grid::-webkit-scrollbar-thumb {
  background: #4299e1;
  border-radius: 10px;
}

.quizzes-grid::-webkit-scrollbar-thumb:hover {
  background: #5a9eff;
}
/* Custom scrollbar styling for quizzes grid */
#quizzesGrid {
    scrollbar-width: thin;
    scrollbar-color: #404FF7 #0e1433;
}

/* For WebKit browsers (Chrome, Safari, Edge) - fallback */
#quizzesGrid::-webkit-scrollbar {
    width: 6px;
}

#quizzesGrid::-webkit-scrollbar-track {
    background: #0e1433;
    border-radius: 10px;
}

#quizzesGrid::-webkit-scrollbar-thumb {
    background: #404FF7;
    border-radius: 10px;
}

#quizzesGrid::-webkit-scrollbar-thumb:hover {
    background: #5a6aff;
}
/* ============================================
   MODERN LOADING OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 42, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modern Capsule Loader */
.loading-capsule {
    background: linear-gradient(135deg, #0a0f2a, #0e1433);
    border: 1px solid rgba(37, 117, 252, 0.3);
    border-radius: 60px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 117, 252, 0.2);
    animation: capsulePulse 1.5s ease-in-out infinite;
}

/* Spinner Animation */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(37, 117, 252, 0.2);
    border-top-color: #2575fc;
    border-right-color: #6a11cb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.loading-text span {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
}

/* Animated dots */
.loading-dots::after {
    content: '';
    display: inline-block;
    width: 24px;
    text-align: left;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

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

@keyframes capsulePulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 117, 252, 0.2);
        border-color: rgba(37, 117, 252, 0.3);
    }
    50% {
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 117, 252, 0.5);
        border-color: rgba(37, 117, 252, 0.8);
    }
}

/* Success Capsule Animation */
.loading-capsule.success {
    background: linear-gradient(135deg, #0a2a1a, #0e3a23);
    border-color: #10b981;
    animation: none;
}

.loading-capsule.success .loading-spinner {
    border-color: #10b981;
    border-top-color: #fff;
    animation: none;
    position: relative;
}

.loading-capsule.success .loading-spinner::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.loading-capsule.error {
    background: linear-gradient(135deg, #2a0a0a, #3a0e0e);
    border-color: #ef4444;
    animation: none;
}

/*------------------MY QUIZZES.PHP-----------------*/
    .my-quizzes-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
    }
    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .page-header h1 {
        margin: 0;
    }
    .btn-create {
        background: linear-gradient(135deg, #6a11cb, #2575fc);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        text-decoration: none;
    }
    .filters {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .search-box {
        display: flex;
        gap: 0.5rem;
    }
    .search-box input {
        padding: 0.5rem;
        background: #0e1433;
        border: 1px solid #263056;
        border-radius: 8px;
        color: white;
        min-width: 250px;
    }
    .search-box button {
        background: #2575fc;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        cursor: pointer;
    }
    .status-filter {
        display: flex;
        gap: 0.5rem;
    }
    .status-filter a {
        padding: 0.5rem 1rem;
        background: #0e1433;
        border: 1px solid #263056;
        border-radius: 8px;
        text-decoration: none;
        color: #718096;
    }
    .status-filter a.active {
        background: #2575fc;
        color: white;
        border-color: #2575fc;
    }
    .quizzes-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    .quiz-card {
        background: #0e1433;
        border: 1px solid #263056;
        border-radius: 12px;
        padding: 1.5rem;
    }
    .quiz-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .quiz-title {
        font-size: 1.1rem;
        font-weight: 600;
        word-break: break-word;
    }
    .quiz-status {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        border-radius: 20px;
        color: white;
    }
    .quiz-details {
        margin-bottom: 1rem;
        font-size: 0.8rem;
        color: #718096;
    }
    .quiz-details div {
        margin-bottom: 0.25rem;
    }
    .quiz-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .quiz-id {
    font-size: 0.8rem;
    color: #718096;
    /*margin-top: 0.25rem;*/
    /*display: inline-flex;
    align-items: center;
    gap: 0.5rem;*/
    flex-wrap: wrap;
    }
    .quiz-id code {
        background: #0e1433;
        /*padding: 0.2rem 0.5rem;*/
        border-radius: 4px;
        /*font-family: monospace;*/
        font-size: 0.8rem;
        /*color: #10b981;*/
        /*letter-spacing: 0.5px;*/
    }
    .btn-take, .btn-results, .btn-close, .copy-link-btn {
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
        font-size: 0.75rem;
        cursor: pointer;
        text-decoration: none;
        border: none;
    }
    .btn-take {
        background: none;
        border: 1px solid #2575fc;
        color: #2575fc;
    }
    .btn-results {
        background: none;
        border: 1px solid #10b981;
        color: #10b981;
    }
    .btn-close {
        background: none;
        border: 1px solid #ef4444;
        color: #ef4444;
    }
    .copy-link-btn {
        background: none;
        border: 1px solid #718096;
        color: #718096;
    }
    .btn-take:hover {
        background: rgba(37, 117, 252, 0.1);
    }
    .btn-results:hover {
        background: rgba(16, 185, 129, 0.1);
    }
    .btn-close:hover {
        background: rgba(239, 68, 68, 0.1);
    }
    .copy-link-btn:hover {
        background: rgba(13, 128, 150, 0.1);
    }    
    .btn-preview:hover {
        background: rgba(37, 117, 252, 0.1);
        }
    .empty-state {
        text-align: center;
        padding: 3rem;
        background: #0e1433;
        border-radius: 12px;
        color: #718096;
    }
    .empty-state a {
        color: #2575fc;
        text-decoration: none;
        margin-top: 0.5rem;
        display: inline-block;
    }
    @media (max-width: 768px) {
        .my-quizzes-container {
            padding: 1rem;
        }
        /*.filters {
            flex-direction: column;
            align-items: stretch;
        }
        .search-box {
            width: 100%;
        }
        .search-box input {
            flex: 1;
        }*/
        .filters {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .search-box {
            width: 100%;
        }
        
        .status-filter {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
        }
        
        /*.status-filter a,
        .status-filter .btn-refresh {
            padding: 0.3rem 0.7rem;
            font-size: 0.7rem;
            white-space: nowrap;
        }*/
        .quizzes-grid {
            grid-template-columns: 1fr;
        }
    }
    /* Section Headers */
    .section-header {
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
        font-weight: 600;
        color: #4299e1;
        margin: 0 0 0.5rem 0;
    }

    .section-divider {
        height: 2px;
        background: linear-gradient(90deg, #4299e1, transparent);
        width: 80px;
        border-radius: 2px;
    }

    /* Taken Quiz Card Styles */
    .taken-quiz-card .quiz-title {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .score-badge {
        font-size: 0.7rem;
        background: #1a1f3a;
        padding: 0.2rem 0.5rem;
        border-radius: 20px;
        color: #10b981;
        font-weight: normal;
    }

    .status-taken {
        background: #8b5cf6;
        color: white;
    }

    .taken-grid {
        margin-top: 0;
    }
    /* Horizontal Scroll Containers */
.horizontal-scroll-container {
    position: relative;
    margin: 1rem 0 2rem 0;
    width: 100%;
}

.horizontal-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #404FF7 #0e1433;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: #0e1433;
    border-radius: 10px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #4299e1;
    border-radius: 10px;
}

.quizzes-grid-horizontal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
}

.quizzes-grid-horizontal .quiz-card {
    flex: 0 0 auto;
    width: 350px;
    min-width: 300px;
}

/* Scroll Arrows for Horizontal Scroll */
.scroll-arrow-horizontal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #0e1433;
    border: 1px solid #263056;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scroll-arrow-horizontal:hover {
    background: linear-gradient(135deg, #2a34a8, #3f7cf3) !important;
    border-color: #3f7cf3 !important;
}

.scroll-arrow-horizontal.left {
    left: -10px;
}

.scroll-arrow-horizontal.right {
    right: -10px;
}

/* Hide arrows by default on desktop, show via JS when needed */
.scroll-arrow-horizontal {
    display: none;
}

/* Always show on mobile */
@media (max-width: 768px) {
    .scroll-arrow-horizontal {
        display: flex !important;
        width: 28px;
        height: 28px;
    }
    
    .scroll-arrow-horizontal.left {
        left: -5px;
    }
    
    .scroll-arrow-horizontal.right {
        right: -5px;
    }
    
    .quizzes-grid-horizontal .quiz-card {
        width: 280px;
        min-width: 260px;
    }
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #263056;
    border-top-color: #2575fc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.status-active {
    background: #f59e0b;
    color: white;
}

.status-closed {
    background: #10b981;
    color: white;
}
.btn-preview {
    background: none;
    border: 1px solid #2575fc;
    color: #2575fc;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
}
.btn-delete {
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}
.btn-delete {
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}
/* Copy Link Button */
.copy-link-btn {
    background: none;
    border: 1px solid #718096;
    color: #718096;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.copy-link-btn:hover {
    background: rgba(113, 128, 150, 0.1);
    border-color: #2575fc;
    color: #2575fc;
    transform: translateY(-1px);
}

.copy-link-btn:active {
    transform: translateY(0px);

}
/* Quiz action buttons - matching quiz-maker.js styling */
.quiz-actions .btn-take,
.quiz-actions .btn-results,
.quiz-actions .btn-close,
.quiz-actions .btn-copy,
.quiz-actions .btn-delete,
.quiz-actions button,
.quiz-actions a {
    border: 1px solid;
    padding: 0.4rem 0.8rem !important;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    background: none;
    font-family: inherit;
    line-height: normal;
    height: auto;
    min-height: auto;
}

/* Individual button colors */
.quiz-actions .btn-take,
.quiz-actions .btn-take {
    border-color: #2575fc;
    color: #2575fc;
}

.quiz-actions .btn-results {
    border-color: #10b981;
    color: #10b981;
}

.quiz-actions .btn-close {
    border-color: #ef4444;
    color: #ef4444;
}

.quiz-actions .btn-copy,
.quiz-actions .copy-link-btn {
    border-color: #718096;
    color: #718096;
}

.quiz-actions .btn-delete {
    border-color: #ef4444;
    color: #ef4444;
}

/* Hover effects */
.quiz-actions .btn-take:hover,
.quiz-actions .btn-take:hover {
    background: rgba(37, 117, 252, 0.1);
}

.quiz-actions .btn-results:hover {
    background: rgba(16, 185, 129, 0.1);
}

.quiz-actions .btn-close:hover {
    background: rgba(239, 68, 68, 0.1);
}

.quiz-actions .btn-copy:hover,
.quiz-actions .copy-link-btn:hover {
    background: rgba(113, 128, 150, 0.1);
}

.quiz-actions .btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}
/* Filter Section Styles */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.search-input-filter {
    flex: 1;
    padding: 0.6rem 1rem;
    background: #0e1433;
    border: 1px solid #263056;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
}

.search-input-filter:focus {
    outline: none;
    border-color: #2575fc;
}

.btn-search, .btn-refresh {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.btn-search:hover, .btn-refresh:hover {
    transform: translateY(-1px);
}

.status-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-filter a {
    padding: 0.5rem 1rem;
    background: #0e1433;
    border: 1px solid #263056;
    border-radius: 8px;
    text-decoration: none;
    color: #718096;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.status-filter a:hover {
    border-color: #2575fc;
    color: #2575fc;
}

.status-filter a.active {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border-color: transparent;
}

.btn-clone {
    background: none;
    border: 1px solid #8b5cf6;
    color: #8b5cf6;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.btn-clone:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.cancel-btn {
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: rgba(113, 128, 150, 0.1);
    transform: translateY(-1px);
}

.cancel-btn:active {
    transform: translateY(0px);
}
.modal-section {    
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
}