        /* Card grid layout */
        .cases-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .case-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 20px;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s, box-shadow 0.2s;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .case-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .case-emoji {
            font-size: 2.5rem;
            margin-bottom: 15px;
            text-align: center;
        }

        .case-sentence {
            font-size: 1.2rem;
            margin-bottom: 10px;
        }

        .case-translation {
            font-style: italic;
            color: #555;
            margin-bottom: 15px;
        }

        .case-highlight {
            font-weight: bold;
            text-decoration: underline;
            padding: 0 2px;
            border-radius: 3px;
        }

        .case-info {
            margin-top: 10px;
            padding: 10px;
            border-radius: 5px;
            background-color: #f9f9f9;
        }

        .case-identification {
            font-size: 1.1rem;
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
        }

        .noun-identification {
            margin-bottom: 10px;
        }

        .noun-properties {
            list-style-type: none;
            padding-left: 10px;
            margin: 5px 0;
        }

        .noun-properties li {
            margin-bottom: 3px;
            font-size: 0.9rem;
        }

        .property-name {
            font-weight: bold;
            color: #555;
        }

        .adjectives-info, .preposition-info {
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

        .case-notes {
            font-size: 0.9rem;
            line-height: 1.4;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px dashed #ddd;
        }

        /* Case color coding */
        .nominative-highlight {
            background-color: rgba(46, 125, 50, 0.2);
        }

        .genitive-highlight {
            background-color: rgba(21, 101, 192, 0.2);
        }

        .dative-highlight {
            background-color: rgba(194, 24, 91, 0.2);
        }

        .accusative-highlight {
            background-color: rgba(106, 27, 154, 0.2);
        }

        .instrumental-highlight {
            background-color: rgba(230, 81, 0, 0.2);
        }

        .prepositional-highlight {
            background-color: rgba(0, 77, 64, 0.2);
        }

        /* Color accents for each case */
        .nominative-card {
            border-top: 4px solid #2e7d32;
        }

        .genitive-card {
            border-top: 4px solid #1565c0;
        }

        .dative-card {
            border-top: 4px solid #c2185b;
        }

        .accusative-card {
            border-top: 4px solid #6a1b9a;
        }

        .instrumental-card {
            border-top: 4px solid #e65100;
        }

        .prepositional-card {
            border-top: 4px solid #004d40;
        }

        /* Filter controls */
        .filter-controls {
            margin: 20px 0;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .filter-button {
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            background-color: #f0f0f0;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .filter-button:hover {
            background-color: #e0e0e0;
        }

        .filter-button.active {
            background-color: #0033A0;
            color: white;
        }

        /* Practice mode toggle */
        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            margin-bottom: 20px;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            margin-right: 10px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: #2196F3;
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }
        
        .toggle-label {
            font-size: 1rem;
            color: #333;
        }
        
        .hidden-text {
            visibility: hidden;
            position: relative;
        }
        
        .hidden-text:after {
            content: "???";
            visibility: visible;
            position: absolute;
            left: 0;
            right: 0;
            text-align: center;
        }
        
        .case-card:hover .hidden-text {
            visibility: visible;
        }
        
        .case-card:hover .hidden-text:after {
            content: "";
        }

        /* Framework steps section */
        .framework-steps {
            background-color: #f5f5f5;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
        }

        .framework-steps h3 {
            margin-top: 0;
            color: #0033A0;
        }

        .framework-steps ol {
            margin-bottom: 0;
        }

        .framework-steps li {
            margin-bottom: 8px;
        }

        .framework-steps ul {
            margin-top: 5px;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .cases-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 15px;
            }
            
            .case-sentence {
                font-size: 1.1rem;
            }
            
            .case-emoji {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            .cases-grid {
                grid-template-columns: 1fr;
            }
        }
        
        
        .cases-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1em 0;
            font-size: 0.95em;
            box-shadow: 0 0 5px rgba(0,0,0,0.1);
        }
        
        .cases-table th, .cases-table td {
            border: 1px solid #ddd;
            padding: 8px 12px;
            text-align: left;
        }
        
        .cases-table th {
            background-color: #0033A0;
            color: white;
            font-weight: bold;
        }
        
        .cases-table tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        
        .highlight {
            background-color: #fffde7;
            font-weight: bold;
        }
        
        .note {
            font-style: italic;
            color: #666;
            margin: 5px 0;
        }
        
        .case-tag {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.8em;
            font-weight: bold;
            margin-right: 5px;
        }
        
        .nominative { background-color: #e8f5e9; color: #2e7d32; }
        .genitive { background-color: #e3f2fd; color: #1565c0; }
        .dative { background-color: #fce4ec; color: #c2185b; }
        .accusative { background-color: #f3e5f5; color: #6a1b9a; }
        .instrumental { background-color: #fff3e0; color: #e65100; }
        .prepositional { background-color: #e0f2f1; color: #004d40; }
        
        .grammar-analysis {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.sentence-analysis {
  margin-bottom: 30px;
}

  .grammar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
  }

  .grammar-table th, .grammar-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: top;
  }

.grammar-table th {
  background-color: #0033A0;
}

.key-notes {
  background-color: #f8f8f8;
  padding: 15px;
  border-radius: 5px;
}

.key-notes ul {
  padding-left: 20px;
}

.key-notes li {
  margin-bottom: 5px;
}
.grammar-table th {
  background-color: #0033A0;
  color: 
  white; /* Add this line */
}
  .case-name {
    font-weight: bold;
  }
  h4 {
    margin-top: 30px;
    margin-bottom: 10px;
  }
  ul {
    margin: 0;
    padding-left: 20px;
  }
