@media screen and (orientation: landscape) {
  /* CSS Variables for Theme Support */
  :root {
    /* Light Theme Colors */
    --primary-color: #2e68f6;
    --secondary-color: #83a9f4;
    --accent-color: #ffa726;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;

    --background-primary: #ffffff;
    --background-secondary: #f5f7fa;
    --background-tertiary: #e8ecf0;

    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;

    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    --map-ocean: #e6f3ff;
    --map-land: #4caf50;
  }

  /* Dark Theme */
  .dark {
    --primary-color: #4c8bf5;
    --secondary-color: #9bb8ff;
    --accent-color: #ffb74d;
    --success-color: #66bb6a;
    --warning-color: #ffa726;
    --error-color: #ef5350;

    --background-primary: #121212;
    --background-secondary: #1e1e1e;
    --background-tertiary: #2d2d2d;

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;

    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);

    --map-ocean: #1a237e;
    --map-land: #81c784;
  }

  /* ===================== Flashcard System Styles ===================== */
  
  /* Flashcard Hub */
  .flashcard-hub {
    min-height: 100vh;
    background: var(--background-primary);
    color: var(--text-primary);
    padding: 2rem;
    margin-top: 50px;
  }

  .flashcard-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }

  .flashcard-hub-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .hub-stats {
    display: flex;
    gap: 2rem;
  }

  .stat-item {
    text-align: center;
  }

  .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Hub Navigation */
  .hub-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
  }

  .nav-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-btn:hover {
    color: var(--primary-color);
  }

  .nav-btn.active {
    color: var(--primary-color);
  }

  .nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
  }

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

  /* Decks View */
  .decks-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
  }

  .search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
  }

  .search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
  }

  .search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    color: var(--text-primary);
    font-size: 1rem;
  }

  .filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .filter-select, .sort-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
  }

  /* Decks Grid */
  .decks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
  }

  .deck-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .deck-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--primary-color);
  }

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

  .deck-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .deck-actions {
    display: flex;
    gap: 0.5rem;
  }

  .icon-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .icon-btn:hover {
    background: var(--background-tertiary);
    color: var(--primary-color);
  }

  .icon-btn.danger:hover {
    color: var(--error-color);
  }

  .deck-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .deck-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
  }

  .deck-progress {
    position: relative;
    height: 8px;
    background: var(--background-tertiary);
    border-radius: 4px;
    overflow: hidden;
  }

  .progress-bar {
    position: relative;
    height: 100%;
    background: var(--background-tertiary);
    border-radius: 4px;
    overflow: hidden;
  }

  .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
  }

  .progress-text {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
  }

  /* Empty State */
  .empty-state {
    text-align: center;
    padding: 4rem 2rem;
  }

  .empty-state i {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
  }

  .empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }

  .empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
  }

  /* Card Creator/Editor */
  .card-creator {
    background: var(--background-primary);
    color: var(--text-primary);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

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

  .creator-header h2 {
    font-size: 2rem;
    font-weight: 600;
  }

  .deck-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
  }

  /* Editor Toolbar */
  .editor-toolbar {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
  }

  .toolbar-group {
    display: flex;
    gap: 0.25rem;
    padding: 0 0.5rem;
    border-right: 1px solid var(--border-color);
  }

  .toolbar-group:last-child {
    border-right: none;
  }

  .toolbar-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
  }

  .toolbar-btn:hover {
    background: var(--background-tertiary);
    color: var(--primary-color);
  }

  .toolbar-btn.special {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .toolbar-btn.special:hover {
    background: var(--secondary-color);
  }

  /* Card Tabs */
  .card-tabs {
    display: flex;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
  }

  .tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .tab-btn:hover {
    background: var(--background-tertiary);
  }

  .tab-btn.active {
    background: var(--background-primary);
    color: var(--primary-color);
    font-weight: 600;
  }

  /* Content Editor */
  .editor-content {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: var(--background-primary);
  }

  .editor-pane {
    display: none;
  }

  .editor-pane.active {
    display: block;
  }

  .content-editor {
    min-height: 200px;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    outline: none;
    position: relative;
  }

  .content-editor:focus {
    background: var(--background-secondary);
  }

  .content-editor[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: var(--text-tertiary);
    pointer-events: none;
    position: absolute;
  }

  /* Math Expression Styling */
  .math-expression {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--background-tertiary);
    border-radius: 4px;
    margin: 0 0.25rem;
    cursor: pointer;
  }

  .math-expression:hover {
    background: var(--primary-color);
    color: white;
  }

  /* Card Metadata */
  .card-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: 8px;
  }

  .metadata-section label {
    display: flex;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
  }

  .difficulty-select,
  .subject-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-primary);
    color: var(--text-primary);
    font-size: 1rem;
  }

  /* Tags */
  .tags-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2rem;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-size: 0.875rem;
  }

  .tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
  }

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

  .tag-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-primary);
    color: var(--text-primary);
  }

  .tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 12px var(--shadow-color);
  }

  .tag-suggestion {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .tag-suggestion:hover {
    background: var(--background-secondary);
  }

  /* Media Section */
  .media-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: 8px;
  }

  .media-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
  }

  .media-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .media-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-primary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .media-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  .media-note {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-style: italic;
  }

  /* Creator Footer */
  .creator-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
  }

  .character-count {
    display: flex;
    gap: 2rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
  }

  .action-buttons {
    display: flex;
    gap: 1rem;
  }

  /* Math Editor Modal */
  .math-editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .math-editor {
    background: var(--background-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }

  .math-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .math-editor-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .close-btn:hover {
    background: var(--background-secondary);
    color: var(--error-color);
  }

  .math-editor-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
  }

  /* Template Categories */
  .template-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .category-btn {
    padding: 0.5rem 1rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .category-btn:hover {
    background: var(--background-tertiary);
  }

  .category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

  /* Template Grid */
  .template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .template-btn:hover {
    background: var(--background-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
  }

  .template-preview {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .template-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
  }

  /* Quick Symbols */
  .quick-symbols {
    margin-bottom: 2rem;
  }

  .quick-symbols h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
  }

  .symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.5rem;
  }

  .symbol-btn {
    padding: 0.75rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .symbol-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

  /* LaTeX Input Section */
  .latex-input-section {
    margin-bottom: 1.5rem;
  }

  .latex-input-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
  }

  .latex-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-secondary);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    resize: vertical;
  }

  .error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
  }

  /* Preview Section */
  .preview-section {
    margin-bottom: 1.5rem;
  }

  .preview-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
  }

  .math-preview {
    min-height: 80px;
    padding: 1.5rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
  }

  .preview-placeholder {
    color: var(--text-tertiary);
    font-style: italic;
  }

  /* Help Section */
  .help-section {
    margin-bottom: 1rem;
  }

  .help-section details {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
  }

  .help-section summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .help-content {
    margin-top: 1rem;
    color: var(--text-secondary);
  }

  .help-content ul {
    list-style: none;
    padding: 0;
  }

  .help-content li {
    padding: 0.25rem 0;
  }

  .help-content code {
    background: var(--background-tertiary);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
  }

  /* Math Editor Footer */
  .math-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
  }

  /* Deck Manager */
  .deck-manager {
    padding: 2rem;
    background: var(--background-primary);
    color: var(--text-primary);
  }

  .manager-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .header-info h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .header-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
  }

  .deck-stats {
    display: flex;
    gap: 1.5rem;
  }

  .deck-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
  }

  .header-actions {
    display: flex;
    gap: 1rem;
  }

  /* Manager Toolbar */
  .manager-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .view-toggle {
    display: flex;
    background: var(--background-secondary);
    border-radius: 6px;
    padding: 0.25rem;
  }

  .view-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .view-btn.active {
    background: var(--primary-color);
    color: white;
  }

  .selection-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .select-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
  }

  .selection-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
  }

  /* Bulk Actions */
  .bulk-actions {
    display: flex;
    gap: 0.5rem;
  }

  .bulk-btn {
    padding: 0.5rem 1rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .bulk-btn:hover {
    background: var(--background-tertiary);
  }

  .bulk-btn.danger:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
  }

  /* Import/Export Panel */
  .import-export-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    background: var(--background-secondary);
    border-radius: 8px;
    margin-bottom: 2rem;
  }

  .panel-section h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }

  .panel-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
  }

  /* Cards Grid View */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .card-item {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
  }

  .card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
  }

  .card-item.selected {
    border-color: var(--primary-color);
    background: var(--background-tertiary);
  }

  .card-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .card-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  .card-content {
    margin-bottom: 1rem;
  }

  .card-front,
  .card-back {
    padding: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.6;
  }

  .card-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
  }

  .card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  .difficulty.easy {
    background: var(--success-color);
    color: white;
  }

  .difficulty.medium {
    background: var(--warning-color);
    color: white;
  }

  .difficulty.hard {
    background: var(--error-color);
    color: white;
  }

  .card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  /* Cards List View */
  .cards-list {
    background: var(--background-secondary);
    border-radius: 8px;
    overflow: hidden;
  }

  .cards-list table {
    width: 100%;
    border-collapse: collapse;
  }

  .cards-list th {
    background: var(--background-tertiary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
  }

  .cards-list td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .cards-list tr:hover {
    background: var(--background-tertiary);
  }

  .cards-list tr.selected {
    background: var(--background-tertiary);
  }

  .cell-content {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tags-cell {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .performance-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .accuracy {
    font-weight: 600;
    color: var(--success-color);
  }

  .performance-bar {
    height: 4px;
    background: var(--background-tertiary);
    border-radius: 2px;
    overflow: hidden;
  }

  .performance-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s ease;
  }

  .no-data {
    color: var(--text-tertiary);
    font-style: italic;
  }

  /* Study Interface */
  .study-interface {
    padding: 2rem;
    min-height: 100vh;
    background: var(--background-primary);
    color: var(--text-primary);
  }

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

  .study-header h2 {
    font-size: 2rem;
    font-weight: 600;
  }

  .settings-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .settings-btn:hover {
    background: var(--background-tertiary);
  }

  /* Study Settings */
  .study-settings {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .settings-group {
    margin-bottom: 1rem;
  }

  .settings-group:last-child {
    margin-bottom: 0;
  }

  .settings-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
  }

  .settings-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-primary);
    color: var(--text-primary);
  }

  /* Study Stats Preview */
  .study-stats-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }

  .stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
  }

  .stat-info {
    display: flex;
    flex-direction: column;
  }

  /* Study Modes Grid */
  .study-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .study-mode-card {
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .study-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mode-color);
  }

  .study-mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--mode-color);
  }

  .mode-icon {
    font-size: 3rem;
    color: var(--mode-color);
    margin-bottom: 1rem;
  }

  .study-mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }

  .study-mode-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
  }

  .start-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--mode-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .start-btn:hover {
    transform: scale(1.05);
  }

  /* Keyboard Shortcuts */
  .keyboard-shortcuts {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
  }

  .keyboard-shortcuts h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }

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

  .shortcut {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .shortcut kbd {
    padding: 0.25rem 0.5rem;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
  }

  .shortcut span {
    color: var(--text-secondary);
  }

  /* Study Mode Common Styles */
  .classic-mode,
  .quiz-mode,
  .write-mode,
  .match-mode {
    min-height: 100vh;
    padding: 2rem;
    background: var(--background-primary);
    color: var(--text-primary);
  }

  /* Study Mode Header */
  .study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }

  .exit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .exit-btn:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
  }

  .progress-info {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
  }

  .card-counter {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
  }

  .timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  /* Flashcard Styles */
  .card-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    perspective: 1000px;
  }

  .flashcard {
    position: relative;
    width: 100%;
    min-height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
  }

  .flashcard.flipped .card-inner {
    transform: rotateY(180deg);
  }

  .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
  }

  .card-front,
  .card-back {
    position: absolute;
    width: 100%;
    min-height: 400px;
    backface-visibility: hidden;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .card-back {
    transform: rotateY(180deg);
  }

  .card-content {
    font-size: 1.25rem;
    line-height: 1.8;
    text-align: center;
    width: 100%;
  }

  .flip-hint {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
  }

  .flip-button {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .flip-button:hover {
    transform: translateX(-50%) scale(1.05);
  }

  /* Rating Section */
  .rating-section {
    text-align: center;
    margin-top: 3rem;
  }

  .rating-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
  }

  .rating-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .rating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
  }

  .rating-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-color);
  }

  .rating-btn.hard {
    border-color: var(--error-color);
  }

  .rating-btn.hard:hover {
    background: var(--error-color);
    color: white;
  }

  .rating-btn.good {
    border-color: var(--warning-color);
  }

  .rating-btn.good:hover {
    background: var(--warning-color);
    color: white;
  }

  .rating-btn.easy {
    border-color: var(--success-color);
  }

  .rating-btn.easy:hover {
    background: var(--success-color);
    color: white;
  }

  .rating-btn i {
    font-size: 2rem;
  }

  .rating-btn span {
    font-weight: 600;
  }

  .rating-btn small {
    font-size: 0.75rem;
    opacity: 0.8;
  }

  /* Navigation Controls */
  .navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 2rem;
  }

  .nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

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

  .card-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  /* Stats Summary */
  .stats-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: 8px;
  }

  .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
  }

  .stat i {
    font-size: 1.25rem;
  }

  /* Modal Overlay */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .modal-content {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }

  .modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

   .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-secondary);
    color: var(--text-primary);
    font-size: 1rem;
  }

  .form-group textarea {
    resize: vertical;
  }

  .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
  }

  /* Error Toast */
  .error-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--error-color);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  .error-toast button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
  }

  /* Loading Spinner */
  .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem;
  }

  .loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
  }

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

  /* Common Button Styles */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 139, 245, 0.3);
  }

  .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-secondary:hover {
    background: var(--background-tertiary);
    transform: translateY(-2px);
  }

  /* Study Complete */
  .study-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
  }

  .study-complete i {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1rem;
  }

  .study-complete h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
  }

  .study-complete button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .study-complete button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
  }

  /* Base Styles */
  .home2-container {
    margin-top: 50px;
    background-color: var(--background-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  /* Animations */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeUpDelay {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    33% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeUpDelay2 {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    66% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes scaleUp {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes slideRight {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes slideLeft {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

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

  @keyframes float {
    0%,
    100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-20px);
    }
  }

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

  .animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
  }
  .animate-fade-up-delay {
    animation: fadeUpDelay 1.2s ease-out forwards;
  }
  .animate-fade-up-delay-2 {
    animation: fadeUpDelay2 1.6s ease-out forwards;
  }
  .animate-fade-up-delay-3 {
    animation: fadeUpDelay2 2s ease-out forwards;
  }
  .animate-scale-up {
    animation: scaleUp 0.6s ease-out forwards;
  }
  .animate-scale-up-delay {
    animation: scaleUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
  }
  .animate-scale-up-delay-2 {
    animation: scaleUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
  }
  .animate-scale-up-delay-3 {
    animation: scaleUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
  }
  .animate-slide-right {
    animation: slideRight 0.8s ease-out forwards;
  }
  .animate-slide-left {
    animation: slideLeft 0.8s ease-out forwards;
  }
  .animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
  }
  .animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
  }
  .animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
  }
  .animate-fade-right {
    animation: slideRight 0.8s ease-out forwards;
  }
  .animate-fade-left {
    animation: slideLeft 0.8s ease-out forwards;
  }

  /* Hero Section */
  .hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
      135deg,
      var(--background-primary) 0%,
      var(--background-secondary) 100%
    );
    overflow: hidden;
  }

  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }

  .floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .shape {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    color: var(--primary-color);
  }

  .shape-1 {
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    animation-delay: 0s;
  }

  .shape-2 {
    top: 60%;
    right: 15%;
    width: 150px;
    height: 150px;
    animation-delay: 2s;
  }

  .shape-3 {
    bottom: 20%;
    left: 30%;
    width: 180px;
    height: 180px;
    animation-delay: 4s;
  }

  .hero-content {
    z-index: 1;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
  }

  .gradient-text {
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
  }

  .primary-button {
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
    color: white !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600;
    border: none !important;
    box-shadow: 0 4px 15px rgba(46, 104, 246, 0.3);
    transition: all 0.3s ease;
  }

  .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 104, 246, 0.4);
  }

  .secondary-button {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .secondary-button:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
  }

  .stat-item {
    text-align: center;
  }

  .stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
  }

  .stat-item p {
    color: var(--text-secondary);
    margin: 0;
  }

  .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s ease-in-out infinite;
    color: var(--text-tertiary);
  }

  /* Features Section */
  .features-section {
    padding: 6rem 0;
    background-color: var(--background-secondary);
  }

  .section-header {
    margin-bottom: 4rem;
  }

  .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }

  .section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
  }

  .features-grid {
    margin-top: 3rem;
  }

  .feature-card {
    background: var(--background-primary);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem 20px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    height: 100%;
    width: 23%;
  }

  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
  }

  .feature-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }

  .feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  /* Authentication Styles (Login2 & Register2) */
  .login2-container,
  .register2-container {
    min-height: 100vh;
    background: linear-gradient(
      135deg,
      var(--background-primary) 0%,
      var(--background-secondary) 100%
    );
    padding: 2rem;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
  }

  .login2-wrapper,
  .register2-wrapper {
    width: 100%;
    max-width: 1200px;
    gap: 4rem;
  }

  .login2-content,
  .register2-content {
    flex: 1;
    max-width: 480px;
    background: var(--background-primary);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px var(--shadow-color);
    position: relative;
    z-index: 1;
  }

  .login2-header,
  .register2-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .login2-header h1,
  .register2-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .login2-header p,
  .register2-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
  }

  /* Form Styles */
  .form-step {
    margin-bottom: 2rem;
  }

  .form-step h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }

  .step-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  /* .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
  } */

  .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--background-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
  }

  .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 104, 246, 0.1);
  }

  .form-input.error {
    border-color: var(--error-color);
  }

  .error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Password Input */
  .password-input-wrapper {
    position: relative;
  }

  .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
  }

  .password-strength {
    margin-top: 0.5rem;
  }

  .strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
  }

  .strength-fill {
    height: 100%;
    transition: width 0.3s ease;
  }

  .strength-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: inline-block;
  }

  /* Google Auth Button */
  .google-auth-button {
    width: 100%;
    padding: 0.875rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff !important;
    color: #333 !important;
    border: 2px solid var(--border-color) !important;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .dark .google-auth-button {
    background: var(--background-secondary) !important;
    color: var(--text-primary) !important;
  }

  .google-auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
  }

  .google-auth-button img {
    width: 20px;
    height: 20px;
  }

  /* Divider */
  .divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
  }

  .divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
  }

  .divider span {
    background: var(--background-primary);
    padding: 0 1rem;
    position: relative;
    color: var(--text-tertiary);
    font-size: 0.875rem;
  }

  /* Checkbox & Radio */
  .checkbox-group,
  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .remember {
    margin-left: 5px;
  }

.checkbox-label,
  .radio-label {
    cursor: pointer;
    color: var(--text-secondary);
    text-wrap: nowrap;
  }

  .checkbox-label input[type="checkbox"],
  .radio-label input[type="radio"] {
    margin-top: 0.125rem;
    cursor: pointer;
  }

  .radio-label span {
    display: flex;
    flex-direction: column;
    text-wrap: nowrap;
  }

  .radio-label strong {
    color: var(--text-primary);
    font-weight: 600;
  }

  .radio-label small {
    font-size: 0.875rem;
    color: var(--text-tertiary);
  }

  /* Subject Grid */
  .subject-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .subject-card {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .subject-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
  }

  .subject-card.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

  .subject-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  /* Theme Selector */
  .theme-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .theme-option {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
  }

  .theme-option:hover {
    border-color: var(--primary-color);
  }

  .theme-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 104, 246, 0.1);
  }

  .theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    position: relative;
  }

  .light-preview {
    background: #fff;
    border: 1px solid #e0e0e0;
  }

  .dark-preview {
    background: #1a1a1a;
    border: 1px solid #333;
  }

  .preview-header {
    height: 20px;
    background: #f0f0f0;
  }

  .dark-preview .preview-header {
    background: #2a2a2a;
  }

  .preview-content {
    padding: 10px;
  }

  .preview-line {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
  }

  .preview-line.short {
    width: 60%;
  }

  .dark-preview .preview-line {
    background: #444;
  }

  /* Progress Bar */
  .registration-progress {
    margin-bottom: 3rem;
  }

  .progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(
      90deg,
      var(--primary-color),
      var(--secondary-color)
    );
    transition: width 0.5s ease;
  }

  .progress-steps {
    display: flex;
    justify-content: space-between;
  }

  .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
  }

  .progress-step.active {
    opacity: 1;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
  }

  .progress-step.active .step-circle {
    background: var(--primary-color);
    color: white;
  }

  .progress-step.current .step-circle {
    box-shadow: 0 0 0 4px rgba(46, 104, 246, 0.2);
  }

  .step-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
  }

  /* Form Actions */
  .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
  }

  .form-actions button {
    flex: 1;
  }

  /* Alerts */
  .alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
  }

  .alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(244, 67, 54, 0.2);
  }

  .alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.2);
  }

  .alert button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .error-banner {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
  }

  /* Auth Footer */
  .auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
  }

  .auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
  }

  .auth-link:hover {
    text-decoration: underline;
  }

  /* Privacy Notice */
  .privacy-notice {
    background: var(--background-secondary);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .privacy-notice p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
  }

  /* Login Specific */
  .forgot-link {
    float: right;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
  }

  .forgot-link:hover {
    text-decoration: underline;
  }

  .login-help {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: 12px;
  }

  .login-help p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: var(--text-primary);
  }

  .login-help ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
  }

  .security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
  }

  /* Login Decoration */
  .login2-decoration {
    flex: 1;
    position: relative;
    display: block; /* Always show in landscape mode */
  }

  .decoration-content {
    padding: 2rem;
  }

  .decoration-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
  }

  .feature-list {
    margin-bottom: 3rem;
  }

  .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
  }

  .stats-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
  }

  .stats-showcase .stat {
    text-align: center;
  }

  .stats-showcase h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
  }

  .stats-showcase p {
    color: var(--text-secondary);
    margin: 0;
  }

  /* Decoration Shapes */
  .register2-decoration,
  .login2-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }

  .decoration-shape {
    position: absolute;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
  }

  .decoration-shape.shape-1 {
    top: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
  }

  .decoration-shape.shape-2 {
    bottom: 20%;
    left: 5%;
    width: 200px;
    height: 200px;
    animation-delay: 2s;
  }

  .decoration-shape.shape-3 {
    top: 50%;
    right: 20%;
    width: 100px;
    height: 100px;
    animation-delay: 4s;
  }

  /* Field Description */
  .field-description {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
  }

  /* Animation for slide down */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-slide-down {
    animation: slideDown 0.3s ease-out;
  }

  .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .feature-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
  }

  .feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
  }

  /* Competition Section */
  .competition-section {
    padding: 6rem 0;
    background: linear-gradient(
      135deg,
      var(--background-tertiary) 0%,
      var(--background-secondary) 100%
    );
  }

  .competition-showcase {
    margin-top: 3rem;
  }

  .competition-showcase1 {
    width: 30%;
    margin: 50px;
  }

  .competition-demo {
    background: var(--background-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-color);
  }

  .demo-screen {
    padding: 2rem;
  }

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

  .player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
  }

  .score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
  }

  .demo-question {
    text-align: center;
  }

  .demo-question p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
  }

  .demo-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .option {
    padding: 1rem;
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1rem;
  }

  .option:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
  }

  .competition-info {
    padding: 2rem;
  }

  .competition-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
  }

  .scoring-system {
    margin-bottom: 3rem;
  }

  .scoring-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .score-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
  }

  .score-badge.first {
    background: linear-gradient(135deg, #ffd700, #ffa000);
  }

  .score-badge.second {
    background: linear-gradient(135deg, #c0c0c0, #808080);
  }

  .score-badge.third {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
  }

  .scoring-item h4 {
    margin: 0;
    color: var(--text-primary);
  }

  .scoring-item p {
    margin: 0;
    color: var(--text-secondary);
  }

  .subject-categories h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
  }

  .subject-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .subject-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .subject-badge.math {
    background: rgba(46, 104, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(46, 104, 246, 0.3);
  }

  .subject-badge.physics {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
  }

  .subject-badge.chemistry {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
  }

  .subject-badge.engineering {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
  }

  .subject-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  /* Community Section */
  .community-section {
    padding: 6rem 0;
    background-color: var(--background-primary);
  }

  .community-showcase {
    margin-top: 3rem;
  }

  .world-map-container {
    position: relative;
    width: 60%;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
  }

  .world-map {
    width: 100%;
    height: auto;
  }

  .continent {
    transition: fill 0.3s ease;
    cursor: pointer;
  }

  .continent:hover {
    filter: brightness(1.2);
  }

  .user-dot {
    fill: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
  }

  .map-stats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .stat-bubble {
    position: absolute;
    background: var(--background-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
    font-size: 0.9rem;
    color: var(--text-primary);
  }

  .stat-bubble strong {
    color: var(--primary-color);
  }

  .community-features {
    margin-top: 4rem;
  }

  .community-features1 {
    width: 22%;
    margin: 20px;
  }

  .community-card {
    background: var(--background-secondary);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    margin-bottom: 2rem;
  }

  .community-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
  }

  .leaderboard-preview {
    background: var(--background-primary);
    border-radius: 8px;
    padding: 1rem;
  }

  .leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
  }

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

  .leaderboard-item.highlight {
    background: rgba(46, 104, 246, 0.1);
    border-radius: 4px;
  }

  .rank {
    font-weight: 700;
    color: var(--primary-color);
    width: 40px;
  }

  .username {
    flex: 1;
    margin: 0 1rem;
    color: var(--text-primary);
  }

  .points {
    font-weight: 600;
    color: var(--text-secondary);
  }

  .achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--background-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .achievement:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--shadow-color);
  }

  .achievement.locked {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .achievement span {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
  }

  .testimonial {
    background: var(--background-primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .testimonial p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
  }

  .testimonial-author strong {
    display: block;
    color: var(--text-primary);
  }

  .testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
  }

  /* Getting Started Section */
  .getting-started-section {
    padding: 6rem 0;
    background: var(--background-secondary);
  }

  .steps-container {
    display: flex;
    justify-content: space-around;
    margin: 4rem 0;
    position: relative;
  }

  .steps-container::before {
    content: "";
    position: absolute;
    top: 80px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
  }

  .step-card {
    text-align: center;
    max-width: 300px;
    position: relative;
    z-index: 1;
  }

  .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
  }

  .step-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
  }

  .step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }

  .step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
  }

  .pricing-comparison {
    margin-top: 4rem;
  }

  .pricing-comparison1 {
    width: 30%;
    margin: 20px;
  }

  .pricing-card {
    width: 100%;
    background: var(--background-primary);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
  }

  .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
  }

  .pricing-card.premium {
    border: 2px solid var(--primary-color);
  }

  .premium-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }

  .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
  }

  .price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
  }

  .pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
  }

  .pricing-card li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
  }

  .pricing-card li:last-child {
    border-bottom: none;
  }

  .pricing-button {
    width: 100%;
    background: var(--background-secondary);
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 1rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .pricing-button:hover {
    background: var(--primary-color);
    color: white !important;
  }

  .pricing-button.premium {
    background: var(--primary-color);
    color: white !important;
  }

  .pricing-button.premium:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color) !important;
  }

  /* Final CTA Section */
  .final-cta-section {
    padding: 6rem 0;
    background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    );
    color: white;
  }

  .cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
  }

  .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }

  .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .final-cta-section .primary-button {
    background: white;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  }

  .final-cta-section .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  }

  .final-cta-section .secondary-button {
    background: transparent;
    color: white !important;
    border: 2px solid white !important;
  }

  .final-cta-section .secondary-button:hover {
    background: white;
    color: var(--primary-color) !important;
  }

  /* Footer */
  .home2-footer {
    background: var(--background-tertiary);
    padding: 4rem 0 2rem;
    color: var(--text-secondary);
  }

  .home2-footer1 {
    width: 80%;
  }

  .footer-content {
    width: 100%;
    margin-bottom: 3rem;
  }

  .footer-content1 {
    text-align: center;
    margin: 0px 100px;
  }

  .home2-footer h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }

  .home2-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .home2-footer li {
    margin-bottom: 0.5rem;
  }

  .home2-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .home2-footer a:hover {
    color: var(--primary-color);
  }

  .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
  }

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

  .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
  }

  .social-links a:hover svg {
    color: white;
  }

  /* Responsive Adjustments for Tablets */
  @media (max-width: 1024px) {
    .home2-container {
      margin-top: 50px;
    }

    @media (max-height: 500px) {
      /* Hero Section */
      .hero-section {
        min-height: 200vh;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(
          135deg,
          var(--background-primary) 0%,
          var(--background-secondary) 100%
        );
        overflow: hidden;
      }

      .hero-title {
        font-size: 2.5rem;
        margin-top: -50vh;
      }

      .login2-decoration {
        display: none; /* Hide decoration in landscape mode */
      }
    }

    .hero-background {
      position: absolute;
      top: 200;
      left: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      z-index: 0;
    }

    .hero-title {
      font-size: 2.5rem;
      /* margin-top: -50vh; */
    }

    .hero-subtitle {
      font-size: 1rem;
    }

    .hero-buttons {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      margin-bottom: 0rem;
    }

    .features-grid {
      flex-direction: column;
    }

    .features-grid .feature-card {
      width: 60%;
      margin-bottom: 1.5rem;
    }

    .competition-showcase {
      flex-direction: column;
      margin-bottom: 2rem;
    }

    .competition-showcase1 {
      width: 60%;
    }

    .world-map-container {
      position: relative;
      width: 70%;
      margin: 0 auto 4rem;
      padding: 2rem;
    }

    .world-map {
      width: 100%;
      height: auto;
    }

    .stat-bubble {
      font-size: 10px;
    }

    .community-features {
      flex-direction: column;
    }

    .community-features1 {
      width: 100%;
      margin: 0 auto;
    }

    .community-card {
      width: 60%;
    }

    .pricing-comparison {
      width: 100%;
      margin: 0 auto;
    }

    .pricing-comparison1 {
      width: 50%;
    }

    .pricing-card {
      width: 100%;
    }

    .home2-footer {
      width: 100%;
    }

    .home2-footer1 {
      width: 100%;
    }

    .footer-content1 {
      text-align: center;
      font-size: 10px;
      margin: 0px 50px;
    }

    .steps-container {
      flex-wrap: wrap;
      gap: 2rem;
    }

    .steps-container::before {
      display: none;
    }

    
  }

  @media screen and (max-width: 1280px) {
    .decoration-content h2 {
      width: 200px;
      font-size: 1.5rem;
    }

    .feature-list {
      width: 200px;
    }
  }
} /******* landscape *******/

  /* Group Study Styles */
  .group-study-hub {
    min-height: 100vh;
    padding: 2rem;
    background: var(--background-primary);
  }

  .group-study-hub.dark-mode {
    background: var(--background-primary);
    color: var(--text-primary);
  }

  .hub-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .hub-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }

  .hub-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
  }

  .hub-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }

  .nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
  }

  .nav-btn.active {
    background: var(--primary-color);
    color: white;
  }

  .nav-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
  }

  /* Room Cards */
  .rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .room-card {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
  }

  .room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--shadow-color);
  }

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

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

  .room-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .privacy-badge.public {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
  }

  .privacy-badge.private {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
  }

  .privacy-badge.invite-only {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
  }

  .live-badge {
    background: #f44336;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
  }

  .room-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
  }

  .room-participants {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }

  .participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    margin-right: -8px;
    border: 2px solid var(--background-secondary);
  }

  .participant-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--background-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid var(--background-secondary);
  }

  .room-actions {
    display: flex;
    gap: 0.5rem;
  }

  .room-actions button {
    flex: 1;
  }

  /* Study Room Styles */
  .study-room {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background-primary);
    overflow: hidden;
  }

  .study-room.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
  }

  .room-content {
    flex: 1;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    overflow: hidden;
  }

  .video-panel {
    width: 300px;
    background: var(--background-secondary);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .activity-panel {
    flex: 1;
    background: var(--background-secondary);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .chat-panel {
    width: 350px;
    background: var(--background-secondary);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Video Interface */
  .video-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .video-grid {
    flex: 1;
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .video-grid.grid-1 {
    grid-template-columns: 1fr;
  }

  .video-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .video-grid.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .video-tile {
    position: relative;
    background: var(--background-tertiary);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
  }

  .video-tile.speaking {
    box-shadow: 0 0 0 3px var(--primary-color);
  }

  .video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .participant-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .participant-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .participant-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .participant-name {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .participant-indicators {
    display: flex;
    gap: 0.5rem;
  }

  .indicator {
    color: white;
    font-size: 0.875rem;
  }

  /* Control Bar */
  .control-bar {
    background: var(--background-secondary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
  }

  .media-controls,
  .room-controls {
    display: flex;
    gap: 0.5rem;
  }

  .control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--background-tertiary);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .control-btn:hover {
    background: var(--primary-color);
    color: white;
  }

  .control-btn.disabled {
    background: #f44336;
    color: white;
  }

  .control-btn.active {
    background: var(--primary-color);
    color: white;
  }

  .control-btn.recording {
    animation: recording-pulse 2s infinite;
  }

  @keyframes recording-pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
  }

  /* Collaborative Whiteboard */
  .collaborative-whiteboard {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .whiteboard-toolbar {
    background: var(--background-tertiary);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
  }

  .toolbar-section {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .tool-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--background-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .tool-btn:hover {
    background: var(--primary-color);
    color: white;
  }

  .tool-btn.active {
    background: var(--primary-color);
    color: white;
  }

  .canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
  }

  .whiteboard-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
    background: white;
  }

  /* Chat System */
  .chat-system {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .chat-message.own-message {
    flex-direction: row-reverse;
  }

  .message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    flex-shrink: 0;
  }

  .message-content-wrapper {
    max-width: 70%;
  }

  .message-bubble {
    background: var(--background-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    word-wrap: break-word;
  }

  .own-message .message-bubble {
    background: var(--primary-color);
    color: white;
  }

  .message-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.25rem;
  }

  .sender-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
  }

  .message-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
  }

  .chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
  }

  .input-wrapper textarea {
    flex: 1;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    resize: none;
    color: var(--text-primary);
    font-family: inherit;
    min-height: 44px;
    max-height: 120px;
  }

  .send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .send-btn:hover:not(:disabled) {
    background: var(--primary-color);
    transform: scale(1.1);
  }

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

  /* Modal Styles */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
  }

  .modal-content {
    background: var(--background-primary);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-header h2 {
    margin: 0;
    color: var(--text-primary);
  }

  .close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .close-btn:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
  }

  /* Form Styles */
  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 104, 246, 0.1);
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
  }

  .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
  }

  /* Button Styles */
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-primary {
    background: var(--primary-color);
    color: white;
  }

  .btn-primary:hover:not(:disabled) {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 104, 246, 0.3);
  }

  .btn-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
  }

  .btn-secondary:hover {
    background: var(--background-tertiary);
  }

  .btn-danger {
    background: #f44336;
    color: white;
  }

  .btn-danger:hover {
    background: #d32f2f;
  }

  .btn-primary:disabled,
  .btn-secondary:disabled,
  .btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }

  /* Empty States */
  .empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
  }

  .empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }

  .empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }

  /* Loading States */
  .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
  }

  .loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  /* Notifications */
  .notifications-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .notification {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
  }

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

  .notification.success {
    border-left: 4px solid #4caf50;
  }

  .notification.error {
    border-left: 4px solid #f44336;
  }

  .notification.info {
    border-left: 4px solid #2196f3;
  }

  .notification button {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
  }

  /* Connection Status */
  .connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
  }

  .status-indicator.connected {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
  }

  .status-indicator.connecting {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
  }

  .status-indicator.disconnected {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
  }

/* Group Study Video Interface Styles */
.study-room {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
}

.video-panel {
  flex: 1;
  min-width: 300px;
  background: #000;
  position: relative;
}

.video-interface {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.video-grid {
  height: 100%;
  display: grid;
  gap: 4px;
  padding: 4px;
}

.video-grid.grid-1 {
  grid-template-columns: 1fr;
}

.video-grid.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.video-grid.grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.video-tile {
  position: relative;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
}

.participant-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
}

.participant-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #4a90e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: white;
}

.no-participants {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #999;
}

.no-participants i {
  font-size: 64px;
  margin-bottom: 1rem;
  display: block;
}


/* Device Settings Modal */
.device-settings-modal {
  position: absolute;
  top: 60px;
  right: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 400px;
  max-height: 600px;
  overflow-y: auto;
  z-index: 1000;
}

.dark-mode .device-settings-modal {
  background: #2a2a2a;
  color: white;
}

.settings-header {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-content {
  padding: 1rem;
}

.setting-group {
  margin-bottom: 1.5rem;
}

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

.setting-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.dark-mode .setting-group select {
  background: #333;
  border-color: #555;
  color: white;
}

/* Connection Quality Indicators */
.connection-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.quality-indicator {
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  background: rgba(0,0,0,0.5);
  color: white;
}

.quality-indicator.good {
  background: rgba(76, 175, 80, 0.8);
}

.quality-indicator.fair {
  background: rgba(255, 152, 0, 0.8);
}

.quality-indicator.poor {
  background: rgba(244, 67, 54, 0.8);
}

.participant-label {
  font-weight: bold;
}

/* Reconnection Overlay */
.reconnection-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.reconnection-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.reconnection-content i {
  font-size: 48px;
  color: #4a90e2;
  margin-bottom: 1rem;
}

.reconnection-content h3 {
  margin-bottom: 0.5rem;
}

.dark-mode .reconnection-content {
  background: #2a2a2a;
  color: white;
}

/* Audio/Video Test UI */
.audio-test, .video-preview {
  margin-top: 0.5rem;
}

.test-meter {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.meter-fill {
  height: 100%;
  background: #4caf50;
  transition: width 0.2s;
}

.test-btn {
  padding: 0.25rem 0.75rem;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.test-btn:hover {
  background: #357abd;
}

.preview-video {
  width: 100%;
  height: 150px;
  background: #000;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

