body {
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
    /* Base colors can be overridden by :root variables */
}

.container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.app-title {
    text-align: center;
    /* color: #4a0e6e; */ /* Use variable */
    color: var(--primary-color, #4a0e6e); /* Fallback color */
    margin-bottom: 10px;
}

.page-title {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
}

/* User Grid Styling */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
    text-align: center;
}

.user-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px auto;
    border: 3px solid var(--primary-color, #ccc);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.user-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: bold;
    font-size: 0.9em;
}

/* Dashboard Styling */
.dashboard-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.profile-pic-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    /* border: 3px solid #4a0e6e; */ /* Use variable */
    border: 3px solid var(--primary-color, #4a0e6e);
}

/* Clickable profile pic label */
.profile-pic-label {
    display: inline-block;
    position: relative;
    cursor: pointer;
    line-height: 0;
    margin-right: 20px;
    flex-shrink: 0;
}

.welcome-container {
    flex-grow: 1;
    min-width: 0;
}

.welcome-greeting {
    font-size: 1.5em;
    color: #333;
    margin: 0 0 5px 0;
}

/* Area containing the username display and input */
#username-edit-area {
    cursor: pointer;
    padding: 5px 0;
    min-height: 1.5em;
    line-height: 1.2;
    overflow: hidden;
}

/* Clickable username span (within the area) */
#username-display-container {
    display: inline-block;
    /* border-bottom: 1px dashed #4a0e6e; */ /* Use variable */
    border-bottom: 1px dashed var(--primary-color, #4a0e6e);
    padding: 0 3px;
    margin: 0;
    vertical-align: baseline;
    line-height: inherit;
    white-space: nowrap;
}

/* Class added by JS when text overflows at min font size */
#username-display-container.ellipsis-active {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#username-text {
    font-weight: bold;
    /* color: #4a0e6e; */ /* Use variable */
    color: var(--primary-color, #4a0e6e);
    display: inline-block;
    vertical-align: baseline;
}

/* Username edit input */
.username-edit-field {
    font-weight: bold;
    font-family: inherit;
    /* color: #4a0e6e; */ /* Use variable */
    color: var(--primary-color, #4a0e6e);
    border: 1px solid #ccc;
    padding: 4px 6px;
    border-radius: 3px;
    margin: 0;
    vertical-align: baseline;
    width: auto;
    max-width: 100%;
    min-width: 150px;
    box-sizing: border-box;
    line-height: inherit;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-button {
    display: block;
    padding: 15px;
    /* background-color: #4a0e6e; */ /* Use variable */
    background-color: var(--primary-color, #4a0e6e);
    /* color: white; */ /* Use variable */
    color: var(--primary-text-color, white);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary-color, #4a0e6e); /* Add border matching bg */
}

.nav-button:hover {
    /* background-color: #360a52; */ /* Use variable */
    background-color: var(--secondary-color, #360a52);
    border-color: var(--secondary-color, #360a52);
    color: var(--secondary-text-color, white);
}

.home-button,
.back-link-container .home-button { /* Style back button consistently */
    background-color: #6c757d; /* Keep grey for neutral actions */
    color: white;
    border-color: #6c757d;
}

.home-button:hover,
.back-link-container .home-button:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: white;
}

/* Style for the Admin button specifically */
.admin-button {
    background-color: var(--admin-button-bg, #ffc107) !important; /* Fallback yellow */
    color: var(--admin-button-text, #333333) !important;
    border-color: var(--admin-button-bg, #ffc107) !important;
}

.admin-button:hover {
    background-color: var(--admin-button-hover-bg, #e0a800) !important;
    border-color: var(--admin-button-hover-bg, #e0a800) !important;
    color: var(--admin-button-text, #333333) !important;
}

/* Basic Responsiveness */
@media (min-width: 600px) {
    .dashboard-nav {
        flex-direction: row;
        justify-content: space-around;
    }
    .nav-button {
        flex-grow: 1;
        margin: 0 5px;
    }
    .nav-button:first-child {
        margin-left: 0;
    }
    .nav-button:last-child {
        margin-right: 0;
    }
}

/* Removed Flashed Messages Styles */
/* .flash-messages { ... } */
/* .alert { ... } */
/* .alert-success { ... } */
/* .alert-danger { ... } */
/* .alert-warning { ... } */
/* .alert-info { ... } */

/* Separator */
.separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* Profile Settings Section */
.profile-settings {
    margin-top: 20px;
    min-height: 1px;
}

/* Removed Profile Settings H2 and Instructions Styles */
/* .profile-settings h2 { ... } */
/* .settings-instructions { ... } */

/* Hide the original forms visually */
.visually-hidden-container, .visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

/* Style hidden input/label if needed, though above container hides them */
/* .setting-form { ... } */
/* .setting-form label { ... } */
/* .setting-form input[type="text"] { ... } */
/* .setting-form input[type="file"] { ... } */
/* .btn-update { ... } */
/* .flag-form { ... } */
/* .flag-selection-container { ... } */
/* .flag-button { ... } */
/* .flag-icon { ... } */

/* Flag Selection */
.flag-form label {
    margin-bottom: 15px; /* More space before flags */
}

.flag-selection-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.flag-button {
    background: none;
    border: 2px solid transparent;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.2s ease;
    line-height: 0; /* Remove extra space below image */
}

.flag-button:hover, .flag-button:focus {
    border-color: #4a0e6e; /* Highlight on hover/focus */
    outline: none;
}

.flag-icon {
    width: 40px; /* Adjust size as needed */
    height: auto;
    display: block; /* Prevent inline spacing issues */
}

/* Country Selection Grid Styling */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Slightly wider */
    gap: 25px;
    justify-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.country-card-form {
    display: contents; /* Allow form to participate in grid layout */
}

.country-card {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Fill grid cell */
}

.country-circle {
    width: 100px; /* Larger circles for flags */
    height: 100px;
    border-radius: 50%;
    background-color: #ddd;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #ccc; /* Default border */
    transition: border-color 0.3s ease;
}

.country-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-name {
    font-weight: bold;
    font-size: 1em;
}

/* Hover effect for country card */
.country-card:hover .country-circle {
    /* border-color: #4a0e6e; */ /* Use variable */
    border-color: var(--secondary-color, #360a52);
}

.back-link-container {
    text-align: center;
    margin-top: 30px;
}

/* New CSS styles from the code block */
.danger-button {
    background-color: #dc3545; /* Bootstrap danger red */
    color: white;
}
.danger-button:hover {
     background-color: #c82333; /* Darker red */
}
.danger-button:disabled {
    background-color: #f8d7da; /* Lighter red when disabled */
    color: #721c24;
    cursor: not-allowed;
}

.nav-button:active {
    transform: scale(0.98);
}
.nav-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* Back Link */
.back-link-container {
    margin-top: 30px;
    text-align: center;
}

/* --- Specific Page Styles --- */

/* Index Page */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.user-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-card img.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--primary-color, #eee); /* Use primary color for border */
}

.user-card .username {
    font-weight: bold;
    word-break: break-word; /* Prevent long names breaking layout */
}

/* Dashboard */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.dashboard-header .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color, #eee);
}

.dashboard-header .username-display {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color, #333);
    flex-grow: 1; /* Take remaining space */
    cursor: pointer; /* Indicate it's editable */
    position: relative;
    padding-right: 25px; /* Space for icon */
}
.dashboard-header .username-display::after {
    content: '\270E'; /* Pencil icon */
    font-size: 0.6em;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    opacity: 0;
    transition: opacity 0.2s;
}
.dashboard-header .username-display:hover::after {
     opacity: 1;
}

.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.dashboard-nav.admin-nav {
    border-top-color: var(--accent-color, #ddd); /* Use accent color for admin nav separator */
}

/* Upload Form */
.upload-form {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}
.upload-form input[type="file"] {
    flex-grow: 1;
}

/* --- Admin Specific Styles --- */
.admin-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--accent-color, #ddd);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.admin-section .section-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color, #333);
    border-bottom: 2px solid var(--primary-color, #eee);
    padding-bottom: 5px;
}

/* Manage Users List */
.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.user-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.user-list li:last-child {
    border-bottom: none;
}
.user-list .avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}
.user-list .username {
    flex-grow: 1;
    margin-right: 10px;
}
.user-list .delete-user-btn {
    flex-shrink: 0;
}

/* Small button variant */
.small-button {
    padding: 5px 10px;
    font-size: 0.8em;
}

.reset-section .warning-text {
    color: #856404; /* Bootstrap warning text color */
    background-color: #fff3cd; /* Bootstrap warning background */
    border: 1px solid #ffeeba; /* Bootstrap warning border */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.reset-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Status Message Styling */
.status-message {
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9em;
    display: inline-block; /* Only take needed width */
    min-width: 150px; /* Minimum width */
    text-align: center;
}
.status-message.success {
    background-color: #d4edda; /* Bootstrap success background */
    color: #155724; /* Bootstrap success text */
    border: 1px solid #c3e6cb;
}
.status-message.error {
    background-color: #f8d7da; /* Bootstrap danger background */
    color: #721c24; /* Bootstrap danger text */
    border: 1px solid #f5c6cb;
}
.status-message.info {
    background-color: #cce5ff; /* Bootstrap info background */
    color: #004085; /* Bootstrap info text */
    border: 1px solid #b8daff;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Style for the specific Add User card */
.add-user-card {
    border-style: dashed;
    border-color: #ccc;
    color: #888;
    cursor: pointer;
}
.add-user-card:hover {
    border-color: var(--primary-color, #666);
    color: var(--primary-color, #333);
    background-color: #f8f8f8;
}
.add-user-icon {
    font-size: 3em;
    line-height: 60px; /* Center vertically in default avatar size */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px dashed #ccc;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.add-user-card:hover .add-user-icon {
    border-color: var(--primary-color, #666);
    color: var(--primary-color, #333);
}

/* Modal Styles */
.modal {
  position: fixed; /* Stay in place */
  z-index: 1001; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
  display: flex; /* Use flexbox for centering */
  align-items: center;
  justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
  background-color: #fefefe;
  margin: auto; /* Centered */
  padding: 30px;
  border: 1px solid #888;
  width: 90%; /* Could be more or less, depending on screen size */
  max-width: 400px; /* Maximum width */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

/* The Close Button */
.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color, #333);
}

.modal-content .form-group {
    margin-bottom: 15px;
}
.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.modal-content input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Prevent padding from adding to width */
}
.modal-content .status-message {
    margin-top: 0;
    margin-bottom: 15px;
    display: block; /* Ensure it takes full width */
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Center modal buttons */
.modal-content form button {
    display: inline-block;
    margin-right: 10px;
}

/* --- Styles for Disabled Buttons --- */
.nav-button.disabled {
    background-color: #adb5bd; /* Grey background */
    color: #6c757d; /* Darker grey text */
    cursor: not-allowed;
    /* pointer-events: none; */ /* REMOVED: This prevents hover for tooltip */
    opacity: 0.65;
    position: relative; /* Needed for tooltip positioning */
}

/* --- Tooltip for Disabled Buttons --- */
[data-tooltip] {
    position: relative; /* Ensure the tooltip is positioned relative to this */
    cursor: help; /* Change cursor to indicate help text */
}

[data-tooltip]::after {
    content: attr(data-tooltip); /* Get text from attribute */
    position: absolute;
    bottom: 100%; /* Position above the button */
    left: 50%;
    transform: translateX(-50%) translateY(-5px); /* Center and add small gap */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 10; /* Ensure tooltip is on top */
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Optional: Adjust tooltip position if needed */
/* Example: Move it below */
/*
[data-tooltip].tooltip-below::after {
    top: 100%;
    bottom: auto;
    transform: translateX(-50%) translateY(5px);
}
*/

/* --- Admin Feature Customisation Styles --- */
.feature-toggle-group {
    margin-bottom: 20px; /* Space before the save button */
}

.feature-toggle {
    display: flex; /* Align checkbox and label */
    align-items: center;
    margin-bottom: 10px; /* Space between toggles */
}

.feature-toggle input[type="checkbox"] {
    margin-right: 10px; /* Space between checkbox and label */
    width: 18px; /* Larger checkbox */
    height: 18px;
    cursor: pointer;
}

.feature-toggle label {
    cursor: pointer; /* Make label clickable */
    flex-grow: 1; /* Allow label to take space */
}

/* --- Finland Flag Easter Egg --- */
#easter-egg-container {
    position: fixed; /* Cover viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Hide flags that go outside */
    pointer-events: none; /* Allow clicks to pass through */
    z-index: -1; /* Position behind everything */
}

.finland-flag {
    position: absolute;
    /* left: -60px; */ /* REMOVED - Position controlled by animation */
    top: 0; /* Initial top, will be overridden by transform */
    opacity: 0.7;
    /* animation: flyAcross linear infinite; */ /* Use new animation name */
    animation: flyAcrossScreen linear infinite;
    -webkit-user-select: none; 
    user-select: none; 
    font-size: 20px; 
    will-change: transform, opacity; /* Hint browser for performance */
}

/* Rename and update keyframes */
@keyframes flyAcrossScreen {
    0% {
        /* Use CSS variables for start position */
        transform: translate(var(--start-x, -60px), var(--start-y, 50vh)) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        /* Use CSS variables for end position and rotation */
        transform: translate(var(--end-x, 105vw), var(--end-y, 50vh)) rotate(calc(var(--random-rot) * 1deg));
        opacity: 0;
    }
}

/* --- Slider Value Indicator --- */
.slider-indicator-container {
    /* position: absolute; */ /* REMOVED */
    /* bottom: 100%; */ /* REMOVED */
    /* left: 0; */ /* REMOVED */
    /* width: 100%; */ /* REMOVED */
    height: 40px; /* Maintain space */
    /* margin-bottom: 5px; */ /* REMOVED */
    margin-top: 10px; /* Space below country info */
    margin-bottom: 0; /* Space above stars */
    text-align: center; /* Center the inline-block indicator */
    pointer-events: none; 
    /* border: 1px dashed blue; */ 
}

.slider-indicator {
    /* position: absolute; */ /* REMOVED */
    position: relative; /* Allows z-index if needed */
    display: inline-block; /* Allow centering via text-align */
    /* bottom: 0; */ /* REMOVED */
    /* left: 0; */ /* REMOVED */
    /* transform: translateX(-50%); */ /* REMOVED - No longer needed for centering */
    width: 36px;
    height: 36px;
    background-color: var(--primary-color, #4a0e6e);
    color: var(--primary-text-color, white);
    border-radius: 50%;
    display: inline-flex; /* Use inline-flex for centering content */
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    opacity: 1;
    visibility: visible;
    /* Removed left from transition */
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    z-index: 5;
}

.slider-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Slider Styles */
.slider-container {
    position: relative; /* ADDED: Needed for absolute positioning of child */
    margin-top: 10px;
    display: flex;
}

/* --- iOS Style Toggle Switch --- */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

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

.setting-label {
    font-size: 1.1em;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.toggle-switch .switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .switch-slider {
    background-color: var(--primary-color, #4a0e6e); /* Use user's primary color */
}

.toggle-switch input:focus + .switch-slider {
    box-shadow: 0 0 1px var(--primary-color, #4a0e6e);
}

.toggle-switch input:checked + .switch-slider:before {
    transform: translateX(22px);
}

/* Collapsed State */
.emoji-picker-container.collapsed {
     padding: 5px; /* Minimal padding */
     width: 40px;  /* Fixed size */
     height: 40px;
     border-radius: 50%; /* Circle */
     cursor: pointer; /* Pointer when collapsed */
     justify-content: center; /* Center the single emoji */
     overflow: hidden; /* Hide overflow */
     gap: 0;
}
.emoji-picker-container.collapsed p,
.emoji-picker-container.collapsed .emoji-options-scrollable, /* Keep old just in case */
.emoji-picker-container.collapsed .emoji-options { /* Explicitly hide the options container */
    display: none; /* Hide text and scroll list */
}
.emoji-picker-container.collapsed .selected-emoji-display { /* This ID is likely wrong now */
     display: none; /* Hide this one */
}
.emoji-picker-container.collapsed #selected-emoji-display { /* Use the correct ID */
    display: inline-block; /* Show selected emoji display */
    font-size: 1.8em;
    line-height: 1;
}

/* Element to show only when collapsed (This selector is likely unused now) */
.selected-emoji-display {
     display: none;
}

/* Add this class via JS when Finland Easter Egg is active */
.vote-display.finland-easter-egg-active {
    background-color: rgba(255, 255, 255, 0.85); /* White with 85% opacity */
    /* Ensure other styles like padding/border remain */
}

/* --- Country Flag Overlay Styles --- */
.country-flag-overlay {
    position: absolute;
    /* Position in bottom-right */
    bottom: 5px; /* Small offset from bottom */
    right: 5px;  /* Small offset from right */
    /* transform: translate(-50%, -50%); */ /* REMOVED */
    /* End positioning */
    font-size: 1.8em; /* Adjust size as needed */
    padding: 2px; 
    border-radius: 4px;
    line-height: 1; 
    z-index: 2; 
    pointer-events: none; 
}

/* --- Dashboard Specific Overlay Position --- */
.profile-pic-label .country-flag-overlay {
    bottom: 8px; /* Adjust position for dashboard view */
    right: 8px;  /* Adjust position for dashboard view */
    font-size: 1.6em; /* Slightly smaller on dashboard? Optional */
} 