/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--bodyTextColor);
    background-color: var(--bodyTextColorWhite);
}

/* Global Color palette */
:root {
    --primary: #2D3142;
    --primaryLight: #4F5D75;
    --accent: #BFC0C0;
    --accentLight: #DEDEDE;
    --bodyTextColor: #2D3142;
    --bodyTextColorWhite: #f2f2f2;
    --white: #FFFFFF;
    --error: #ffbda1;
    --success: #4CAF50;
    --info: #c1e3ff;
    --shadow: rgba(45, 49, 66, 0.1);
}

/* Header styles */
/*.main-header {
    background-color: var(--primary);
    color: var(--bodyTextColorWhite);
    padding: 1rem 0;
    width: 100%;
    box-shadow: 0 2px 4px var(--shadow);
}

.profile-link {
    text-decoration: underline !important;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content nav a {
    color: var(--bodyTextColorWhite);
    text-decoration: none;
    align-items: center;
    margin-left: 1rem;
    transition: color 0.2s ease;
    vertical-align: middle;
}

.svg-icon {
    margin-left: 1rem;
    display: inline-block;
}

.clear-a-styles {
    text-decoration: none;
    color: var(--bodyTextColorWhite);
}

.header-content nav a:hover {
    color: var(--accent);
    text-decoration: none;
} */

/* Language dropdown styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.lang-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    vertical-align: middle;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.lang-dropdown-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.dropdown-arrow {
    color: var(--bodyTextColorWhite);
    font-size: 12px;
    margin-left: 2px;
    display: inline-block;
    vertical-align: middle;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--primaryLight);
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px var(--shadow);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 5px;
}

.lang-dropdown-content a {
    color: var(--bodyTextColorWhite);
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s;
}

.lang-dropdown-content a.active-lang {
    color: var(--accent);
    pointer-events: none;
    opacity: 0.7;
}

.lang-dropdown-content a:hover:not(.active-lang) {
    background-color: var(--primary-dark);
}

/* Show dropdown when clicked (toggled via JS) */
.lang-dropdown.show .lang-dropdown-content {
    display: block;
}

textarea {
    font-family: var(--bodyFont);
    width: 100%;
    resize: vertical;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    min-height: 100px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Container and content blocks */
.container {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.content-blocks {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Block styling */
.block {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    width: 100%;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Main styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Welcome section styles */
.welcome-section {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 5px;
    box-shadow: 0 2px 8px var(--shadow);
    border-top: 4px solid var(--primary);
}

.welcome-section h1 {
    margin-bottom: 20px;
    color: var(--primary);
}

.welcome-section p {
    color: var(--bodyTextColor);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.welcome-actions {
    margin-top: 2rem;
}

.welcome-actions .button {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: var(--bodyTextColorWhite);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.welcome-actions .button:hover {
    background-color: var(--primaryLight);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.dashboard-actions {
    margin-top: 20px;
}

.dashboard-actions ul {
    list-style: none;
    padding: 0;
}

.dashboard-actions li {
    margin: 10px 0;
}

.dashboard-actions a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dashboard-actions a:hover {
    color: var(--primaryLight);
}

.justified {
    text-align: justify;
    text-align-last: center;
    -moz-text-align-last: center;
    -webkit-text-align-last: center;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* User management styles */
.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--accentLight);
    vertical-align: middle;
}

.user-table th {
    background-color: var(--primary);
    color: var(--bodyTextColorWhite);
    font-weight: bold;
}

.user-table tr:hover {
    background-color: var(--accentLight);
    color: var(--primary);
}

.actions {
    margin: 20px 0;
}

.welcome-section a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.welcome-section a:hover {
    color: var(--bodyTextColorWhite);
}

/* Button styles */
.button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: var(--primary);
    color: var(--bodyTextColorWhite);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.button:hover {
    background-color: var(--primaryLight);
}

.button.secondary {
    background-color: var(--accent);
    color: var(--primary);
}

.button.secondary:hover {
    background-color: var(--accentLight);
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Message styles */
.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message.error {
    background-color: var(--error);
    color: var(--bodyTextColor);
}

.message.success {
    background-color: var(--success);
    color: var(--bodyTextColorWhite);
}

.message.info {
    background-color: var(--info);
    color: var(--bodyTextColor);
}

/* Footer styles */
.footer-card {
    background: var(--white);
    border-top: 4px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    margin: 2rem auto 0;
    max-width: 800px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-link {
    color: var(--primary);
    transition: color 0.2s ease;
}


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

.footer-content {
    text-align: center;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Remove the extra padding since footer is no longer fixed */
.container {
    padding-bottom: 2rem;
}

.auth-card {
    background: white;
    border-top: 4px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    min-width: 340px;
    text-align: center;
}

.auth-card > * {
    margin-bottom: 0.5rem;
}

.auth-card > *:last-child {
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group > * > * {
    margin-bottom: 0.5rem;
}

.form-group > * > *:last-child {
    margin-bottom: 0;
}

.form-control {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
}

.role-options {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.role-option-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.role-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dashboard common styles - can be used for both admin and student */
.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.info-card {
    margin-bottom: 20px;
}

.info-card p {
    color: var(--primaryLight);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.actions-grid .button {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.actions .button {
    width: 100%;
    text-align: center;
    align-content: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.profile-info {
    margin-bottom: 1.5rem;
}

.form-static {
    padding: 0.5rem;
    background-color: var(--accentLight);
    border-radius: 4px;
    color: var(--primary);
}

.roles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: var(--accentLight);
    border-radius: 4px;
}

.role-item span {
    color: var(--primary);
    font-weight: bold;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Fancy checkbox styles */
.fancy-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}

.fancy-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.fancy-checkbox:hover {
    background-color: var(--accentLight);
}

.fancy-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.fancy-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary);
    border-color: var(--primary);
}

.fancy-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
}

.label-text {
    font-size: 1rem;
    color: var(--primary);
}

.role-form {
    margin: 1rem 0;
}

/* Add these new styles for disabled checkboxes */
.fancy-checkbox input[type="checkbox"]:disabled + .checkbox-custom {
    background-color: var(--accentLight);
    border-color: var(--accent);
    cursor: not-allowed;
}

.fancy-checkbox input[type="checkbox"]:disabled ~ .label-text {
    color: var(--accent);
    cursor: not-allowed;
}

.fancy-checkbox input[type="checkbox"]:checked:disabled + .checkbox-custom {
    background-color: var(--accent);
    border-color: var(--accent);
}

.fancy-checkbox input[type="checkbox"]:disabled + .checkbox-custom::after {
    border-color: var(--primary);
}

/* Also update the hover state for disabled checkboxes */
.fancy-checkbox:has(input[type="checkbox"]:disabled):hover {
    background-color: transparent;
    cursor: not-allowed;
}

/* Review section styles */
.review-section {
    margin-bottom: 1.5rem;
    text-align: left;
}

.review-section h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-item {
    background: var(--accentLight);
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
    margin-bottom: 10px;
}

.suggestion-category {
    display: inline-block;
    background: var(--primary);
    color: var(--bodyTextColorWhite);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.suggestion-issue,
.suggestion-text {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.improved-version {
    background: var(--white);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    white-space: pre-wrap;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Add these at the end of your CSS file */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--accentLight);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state {
    text-align: center;
}

.loading-state h3 {
    margin: 1rem 0;
    color: var(--primary);
}

.loading-state p {
    color: var(--primaryLight);
}

/* Add these responsive design improvements */

/* Base responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    textarea {
        width: 100%;
        min-height: 150px;
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 1rem auto;
        min-width: auto;
        width: 100%;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Adjust tables for mobile */
    .user-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--accent);
        border-radius: 4px;
    }
    
    /* Style to indicate scrollable content */
    .user-table:before {
        content: "← Scroll →";
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--primaryLight);
        padding: 0.5rem;
    }
    
    /* Collapsed table view option */
    .table-collapsed th {
        display: none;
    }
    
    .table-collapsed td {
        display: block;
        width: 100%;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid var(--accentLight);
    }
    
    .table-collapsed td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }
    
    .table-collapsed tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--accent);
        border-radius: 4px;
    }
    
    /* Card view for tables */
    .table-cards {
        display: block;
        border: none;
    }
    
    .table-cards thead {
        display: none;
    }
    
    .table-cards tbody, .table-cards tr {
        display: block;
        width: 100%;
    }
    
    .table-cards tr {
        margin-bottom: 1rem;
        border: 1px solid var(--accent);
        border-radius: 4px;
        padding: 1rem;
        box-shadow: 0 2px 4px var(--shadow);
    }
    
    .table-cards td {
        display: flex;
        justify-content: space-between;
        text-align: right;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--accentLight);
    }
    
    .table-cards td:last-child {
        border-bottom: none;
    }
    
    .table-cards td:before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        padding-right: 1rem;
    }
    
    /* Adjust grids for mobile */
    .actions-grid,
    .actions {
        grid-template-columns: 1fr;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .welcome-section {
        padding: 20px 15px;
    }
    
    .welcome-actions .button {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
    }
    
    .block {
        padding: 1rem;
    }
    
    .form-input {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .footer-card {
        padding: 1rem;
        margin: 1rem auto 0;
    }
}

/* Update existing form styles to be more responsive */
.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-input,
select.form-input {
    width: 100%;
    max-width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
}

/* Ensure content blocks are responsive */
.content-blocks {
    width: 100%;
    box-sizing: border-box;
}

/* Additional responsive utility classes */
.overflow-auto {
    overflow-x: auto;
}

/* Update container to have better mobile support */
.container {
    max-width: 1200px;
    padding: 1rem;
    box-sizing: border-box;
}

/* Update button styles for better mobile support */
.button {
    white-space: normal;
    text-align: center;
}

.button:disabled {
    background-color: var(--accentLight);
    color: var(--primaryLight);
}

/* Make sure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Submission cards for responsive tables replacement */
.submission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.submission-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--primary);
}

.submission-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.submission-header {
    padding: 1rem;
    background-color: var(--accentLight);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submission-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
    word-break: break-word;
}

.submission-date {
    font-size: 0.9rem;
    color: var(--primaryLight);
}

.submission-body {
    padding: 1rem;
    flex: 1;
}

.submission-info {
    display: flex;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.info-label {
    font-weight: bold;
    color: var(--primary);
    margin-right: 0.5rem;
    min-width: 80px;
}

.info-value {
    color: var(--primaryLight);
}

.submission-footer {
    padding: 1rem;
    background-color: var(--accentLight);
    display: flex;
    gap: 0.5rem;
}

.submission-footer .button {
    flex: 1;
}

/* Responsive adjustments for submission cards */
@media (max-width: 768px) {
    .submission-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .button {
        width: 100%;
    }
}

/* Submission list for responsive display */
.submission-list {
    width: 100%;
    margin-top: 1rem;
}

.submission-item {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submission-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.submission-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--accentLight);
    font-weight: bold;
}

ul {
    list-style-type: none;
}

.submission-item-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-right: 1rem;
}

.submission-item-date {
    color: var(--primaryLight);
    font-size: 0.9rem;
    font-weight: normal;
}

.submission-item-content {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    align-items: center;
}

.submission-item-info {
    flex: 1;
    min-width: 200px;
    margin-right: 12px;
}

.submission-item-label {
    font-weight: bold;
    color: var(--primary);
    display: inline-block;
    margin-right: 0.5rem;
}

.submission-item-value {
    color: var(--primaryLight);
}

.submission-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive adjustments for submission lists */
@media (min-width: 768px) {
    .submission-item-content {
        justify-content: space-between;
    }
    
    .submission-item-actions {
        margin-top: 0;
        justify-content: flex-end;
    }
}

@media (max-width: 580px) {
    .submission-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .submission-item-date {
        margin-top: 0.25rem;
    }
    
    .submission-item-actions .button {
        width: 100%;
    }

    .container {
        width: 100%;
    }
}

/* Cost Management Styles */
.cost-summary {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--accentLight);
    border-radius: 8px;
}

.progress-container {
    background-color: var(--white);
    border-radius: 4px;
    margin: 1rem 0;
    height: 20px;
    overflow: hidden;
    border: 1px solid var(--accent);
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    color: var(--bodyTextColorWhite);
    text-align: center;
    line-height: 20px;
    font-size: 0.8rem;
    transition: width 0.5s ease;
}

.progress-bar.warning {
    background-color: #ff9800;
}

.progress-bar.danger {
    background-color: #f44336;
}

.budget-remaining {
    font-size: 0.9rem;
    color: var(--primaryLight);
    margin-left: 0.5rem;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

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

.mini-progress {
    height: 6px;
    background-color: var(--white);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
    border: 1px solid var(--accent);
}

.mini-progress-bar {
    height: 100%;
    background-color: var(--primary);
}

.cost-limit-reached {
    background-color: rgba(244, 67, 54, 0.1);
}

.cost-limit-warning {
    border-left: 4px solid #f44336;
}

.button.small {
    padding: 2px 8px;
    font-size: 0.8rem;
}

.limited-types-badge {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}

.badge.warning {
    background-color: #f44336;
}