/* OS-specific window styles */
.window-mac .browser-header {
    background-color: #e0e0e0;
    border-radius: 8px 8px 0 0;
}
.window-mac .browser-buttons .browser-button.close { background-color: #ff5f56; }
.window-mac .browser-buttons .browser-button.minimize { background-color: #ffbd2e; }
.window-mac .browser-buttons .browser-button.maximize { background-color: #27c93f; }

.window-win11 .browser-header {
    background-color: #f3f6fd;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #cfd8dc;
}
.window-win11 .browser-buttons .browser-button.close { background-color: #e81123; }
.window-win11 .browser-buttons .browser-button.minimize { background-color: #f9f1a5; }
.window-win11 .browser-buttons .browser-button.maximize { background-color: #16c60c; }

.window-win7 .browser-header {
    background-color: #e4ecf7;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #b0c4de;
}
.window-win7 .browser-buttons .browser-button.close { background-color: #d9534f; }
.window-win7 .browser-buttons .browser-button.minimize { background-color: #f0ad4e; }
.window-win7 .browser-buttons .browser-button.maximize { background-color: #5cb85c; }

.window-macx .browser-header {
    background-color: #dbefff;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #b0c4de;
}
.window-macx .browser-buttons .browser-button.close { background-color: #ff605c; }
.window-macx .browser-buttons .browser-button.minimize { background-color: #ffbd44; }
.window-macx .browser-buttons .browser-button.maximize { background-color: #00ca56; }
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    box-sizing: border-box;
    padding: 10px; /* Add some padding for small screens */
}

.browser-frame {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width on mobile */
    max-width: 900px; /* Max width for desktop */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 500px; /* Minimum height for the browser frame */
    border: 1px solid #ddd;
}

.browser-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background-color: #e0e0e0;
    border-bottom: 1px solid #ccc;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.browser-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.browser-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: default;
}

.browser-button.close { background-color: #ff5f56; }
.browser-button.minimize { background-color: #ffbd2e; }
.browser-button.maximize { background-color: #27c93f; }

.navigation-buttons {
    display: flex;
    gap: 5px;
    align-items: center; /* Align items vertically in the center */
}

.nav-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 1.1em;
    height: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    line-height: 1; /* Adjust line height for better vertical alignment */
}

.cookie-button {
    background-color: #cc7e0a;
    color: #333;
    border: 1px solid #8a5506;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    line-height: 1; /* Adjust line height for better vertical alignment */
}
.cookie-button:hover {
    background-color: #f1af4a;
}

.nav-button:hover:not(:disabled) {
    background-color: #e6e6e6;
    border-color: #a3a3a3;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.create-page-button {
    font-size: 1.4em; /* Larger plus sign */
    padding: 2px 7px; /* Adjust padding for plus sign */
    font-weight: bold;
    color: #007bff; /* Blue accent for creation */
}

.create-page-button:hover:not(:disabled) {
    background-color: #e6f2fa; /* Lighter blue on hover */
    border-color: #007bff;
}

.fpoints-counter {
    font-size: 0.9em;
    font-weight: bold;
    color: #4CAF50; /* Green color for currency */
    margin-left: 10px; /* Space from buttons */
    background-color: #e6ffe6;
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid #8bc34a;
    white-space: nowrap; /* Prevent wrapping */
    position: relative; /* Make it a positioning context for the notification */
}

/* New styles for the FPoints notification */
.fpoints-notification {
    position: absolute;
    top: 50%; /* Vertically center relative to fpoints-counter */
    left: 100%; /* Position to the right of the fpoints-counter */
    transform: translateY(-50%) translateX(5px); /* Initial position, moved slightly right */
    white-space: nowrap;
    font-size: 0.9em; /* Match fpoints counter size */
    font-weight: bold;
    color: #4CAF50; /* Match fpoints counter color */
    opacity: 0; /* Start invisible */
    animation: fadeOutUp 2s forwards; /* Animation: move up and fade out over 2 seconds */
    pointer-events: none; /* Do not block mouse events on elements below */
    z-index: 10; /* Ensure it appears above other elements */
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
        transform: translateY(-50%) translateX(5px); /* Start visible at initial offset */
    }
    100% {
        opacity: 0;
        transform: translateY(-100%) translateX(5px); /* Move up and fade out */
    }
}

.address-bar-container {
    flex-grow: 1;
    display: flex;
    height: 30px;
    background-color: #fff;
    border-radius: 5px;
    width: 50%;
    border: 1px solid #ccc;
    overflow: hidden; /* Ensure contents stay within bounds */
}

.address-bar {
    flex-grow: 1;
    border: none;
    padding: 6px 10px; /* Adjust padding for better fit */
    width: 300px; /* Minimum width */
    position: relative;
    font-size: 0.9em;
    outline: none;
    background-color: transparent;
}

.go-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    white-space: nowrap; /* Prevent "Go" from wrapping */
}

.go-button:hover {
    background-color: #45a049;
}

.dropdown {
  position: relative;
}

/* Style the dropdown button */
.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  width: 150px;
  right: 0;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.home-page-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;

}

.home-page-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
/* Links inside dropdown content */
.dropdown-content a {
  color: black;
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  color: #616161;
  border-radius: 10px;
  background-color: #f1f1f1;
}

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change background color of dropdown button on hover */
.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}

.browser-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto; /* Enable scrolling for content */
    background-color: #fcfcfc;
    line-height: 1.6;
    color: #333;
}

.random-user-page {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto; /* Enable scrolling for content */
    background-color: #fcfcfc;
    line-height: 1.6;
    color: #333;
}

.random-link {
    color: #007bff;
    text-decoration: underline;
}

/* Goog Styles */
.goog-homepage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%; /* Ensure content fills height for centering */
    text-align: center;
    padding: 20px; /* Add padding for overall content */
}
.goog-search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    box-sizing: border-box;
}
.goog-search-button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 12px 25px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    border-radius: 25px;
    white-space: nowrap;
}
.goog-search-button:hover {
    background-color: #727272;
}
.goog-search-results {
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    text-align: left;
}
/* Home Page Specific Styles */
.home-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%; /* Ensure content fills height for centering */
    text-align: center;
    padding: 20px; /* Add padding for overall content */
}

.app-logo { /* Renamed from .home-page-logo for general use */
    width: 120px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 15px;
}

.home-page-content h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.home-page-content .tagline {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.home-page-search-container {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.home-page-search-input {
    flex-grow: 1;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    outline: none;
    border-radius: 25px 0 0 25px; /* Visual rounding */
    background-color: #fff;
}

.home-page-search-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    border-radius: 0 25px 25px 0; /* Visual rounding */
    white-space: nowrap;
}

.home-page-search-button:hover {
    background-color: #0056b3;
}

.home-page-buttons-container {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin-top: 20px;
    width: 100%; /* Ensure container uses full width for centering */
}

.home-page-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-grow: 1; /* Allow buttons to grow and take available space */
    min-width: 160px; /* Minimum width for buttons to prevent too much squishing */
    max-width: 220px; /* Maximum width to control size */
}

.home-page-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.quick-links-section {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.quick-links-section h2 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.quick-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.quick-links li {
    background-color: #f0f8ff;
    border: 1px solid #add8e6;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1 1 calc(33% - 30px); /* Allow 3 items per row on larger screens */
    min-width: 200px; /* Minimum width for each item */
    max-width: 30%; /* Max width to ensure wrapping */
}

.quick-links li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quick-links li a {
    display: block;
    padding: 12px 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
}

.quick-links li a:hover {
    color: #0056b3;
}

.link-description {
    font-size: 0.8em;
    color: #666;
    margin-top: -8px; /* Pull description closer to link */
    padding: 0 15px 10px; /* Add padding to match link */
    line-height: 1.3;
}

.footer-note {
    margin-top: 50px;
    font-size: 0.85em;
    color: #888;
}

/* New styles for search results page and quick links page */
.search-results-page,
.quick-links-page {
    /* Inherits much from .home-page-content for centering and basic layout */
    padding: 20px;
    text-align: center;
}

.search-result-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin: 15px auto; /* Center items with auto margin */
    max-width: 600px; /* Limit width for search result items */
    text-align: left; /* Align text within the item */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.search-result-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.search-result-item a {
    color: #1a0dab; /* Standard blue link color */
    text-decoration: underline;
}

.search-result-item a:hover {
    text-decoration: none;
}

.search-result-item p {
    font-size: 0.9em;
    color: #545454;
}

/* General App Layout Header (for MyTube and Shop) */
.app-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0);
    border-bottom: 1px solid #eee;
    gap: 15px;
    flex-wrap: wrap;
}
.app-header .app-logo {
    width: 35px;
    height: 35px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.app-header .app-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}
.app-search-container { /* Generalized search container */
    flex-grow: 1;
    display: flex;
    max-width: 600px;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    margin: 0;
    box-shadow: none;
}
.app-search-input {
    flex-grow: 1;
    border: none;
    padding: 0 15px;
    font-size: 1em;
    outline: none;
    border-radius: 20px 0 0 20px;
    background-color: #fff;
    height: 100%;
}
.app-search-button {
    background-color: #f8f8f8;
    color: #555;
    border: 1px solid #ccc;
    border-left: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0 20px 20px 0;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-search-button:hover {
    background-color: #f0f0f0;
    color: #333;
}
.app-header-button { /* Generalized header button */
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-left: auto;
    white-space: nowrap;
    text-decoration: none; /* For anchor tags */
    display: flex;
    align-items: center;
    justify-content: center;
}

.luck-button {
    background-color: #ff9100;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.luck-button:hover {
    background-color: #be6c00;
    transform: none; /* Override general app-header-button transform */
}
.app-header-button:hover {
    /* background-color: #0056b3; */
    transform: none; /* Override general app-header-button transform */
}

/* MyTube specific buttons and channel page styles */
.mytube-channel-form-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    max-width: 500px;
    margin: 50px auto;
    text-align: center;
    border: 1px solid #eee;
}

.mytube-channel-form-card h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.mytube-channel-form-card p {
    color: #555;
    margin-bottom: 25px;
}

.mytube-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.mytube-button { /* General purpose button for internal pages */
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 150px;
}

.mytube-button:hover:not(:disabled) {
    background-color: #b30000;
}

.mytube-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 10px;
    height: 1.2em; /* Reserve space */
}

/* My Channel Page Header */
.mytube-channel-header {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px; /* Adjust padding for the header card */
    max-width: none; /* Remove max-width */
    margin: 0; /* Remove auto margin */
    box-shadow: none; /* No shadow, it's just a section */
    border: none; /* No border for header */
    border-bottom: 1px solid #eee; /* Subtle separator */
    background-color: #fff;
    border-radius: 0;
}

.mytube-large-avatar {
    width: 80px;
    height: 80px;
    font-size: 2em;
}

.mytube-channel-details h1 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 5px;
}

.mytube-channel-stats {
    font-size: 1em;
    color: #606060;
}

.mytube-channel-actions {
    margin-left: auto; /* Push actions to the right */
    display: flex;
    gap: 10px;
}

.mytube-upload-button {
    background-color: #28a745; /* Green for upload */
}
.mytube-upload-button:hover:not(:disabled) {
    background-color: #218838;
}

/* MyTube Video Watch Page - Upload Button */
.mytube-subscribe-button.mytube-upload-button {
    background-color: #28a745;
}
.mytube-subscribe-button.mytube-upload-button:hover:not(:disabled) {
    background-color: #218838;
}

/* FExplorer Shop Page Styles (Microsoft Store-like) */
.shop-page-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f3f3f3; /* Lighter background for shop */
    padding: 0; /* Remove padding from browser-content */
}

.shop-main-content {
    display: flex;
    flex-grow: 1;
    overflow-y: auto;
}

.shop-sidebar {
    width: 250px; /* Wider sidebar */
    background-color: #fff;
    padding: 20px;
    border-right: 1px solid #eee;
    flex-shrink: 0;
    overflow-y: auto;
}

.shop-sidebar h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
}

.shop-account-info, .shop-category-list {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.shop-account-info p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #555;
}

.shop-account-info strong {
    color: #333;
}

.shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-sidebar li {
    margin-bottom: 5px;
}

.shop-sidebar a {
    display: block;
    padding: 8px 10px;
    color: #0067b8; /* Microsoft blue */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.shop-sidebar a:hover,
.shop-sidebar a.active {
    background-color: #e6f2fa;
    color: #005a9e;
}

.shop-listing {
    flex-grow: 1;
    padding: 25px;
    background-color: #f3f3f3;
}

.shop-listing h1 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
}

.shop-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* More items per row */
    gap: 20px;
}

.shop-item-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%; /* Ensure cards are same height in a row */
}

.shop-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.shop-item-icon-container {
    padding: 15px;
    background-color: #e9e9e9; /* Light background for icon */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px; /* Fixed height for icon area */
}

.shop-item-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: #fff; /* White background for icon itself */
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shop-item-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.shop-item-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
    min-height: 2.6em; /* Reserve space for 2 lines */
}

.shop-item-description {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    flex-grow: 1; /* Pushes button to bottom */
    min-height: 3.4em; /* Reserve space for 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.shop-item-price {
    font-size: 1em;
    font-weight: bold;
    color: #0067b8; /* Microsoft blue */
    margin-bottom: 10px;
}

.shop-buy-button {
    background-color: #0078d4; /* Microsoft button blue */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%; /* Full width within card */
    margin-top: auto; /* Pushes button to the bottom */
}

.shop-buy-button:hover:not(:disabled) {
    background-color: #005a9e;
    transform: translateY(-1px);
}

.shop-buy-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* MyTube Video Watch Page Styles */
.mytube-watch-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f9f9f9;
    padding: 0; /* Override padding from browser-content */
}

.mytube-watch-main {
    display: flex;
    flex-grow: 1;
    padding: 20px; /* Add padding here for content */
    gap: 20px;
}

.mytube-player-container {
    flex: 3; /* Main player takes more space */
    min-width: 0; /* Allow shrinking */
}

.mytube-player {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.mytube-player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    flex-direction: column;
    text-align: center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>');
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: 60px;
}

.mytube-player-placeholder span {
    margin-top: 60px; /* Space for the play icon */
    font-size: 0.8em;
    max-width: 80%;
    line-height: 1.3;
}

.mytube-video-details {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mytube-video-details h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.mytube-channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mytube-channel-avatar {
    width: 40px;
    height: 40px;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2em;
    flex-shrink: 0;
}

.mytube-channel-name {
    font-weight: bold;
    color: #333;
}

.mytube-video-stats {
    font-size: 0.9em;
    color: #606060;
    margin-bottom: 10px;
}

.mytube-video-description {
    font-size: 0.95em;
    color: #333;
    line-height: 1.5;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.mytube-comments-section {
    margin-top: 20px;
}

.mytube-comments-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.mytube-comment-item {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.mytube-comment-author {
    font-weight: bold;
    margin-right: 5px;
}

.mytube-suggested-videos {
    flex: 1; /* Suggested videos sidebar */
    min-width: 280px; /* Minimum width for sidebar */
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    align-self: flex-start; /* Align to the top */
}

.mytube-suggested-videos h3 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.mytube-suggested-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
}

.mytube-suggested-thumbnail {
    width: 120px;
    height: 67px; /* 16:9 for thumbnail */
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: #eee;
}

.mytube-suggested-info {
    flex-grow: 1;
}

.mytube-suggested-title {
    font-size: 0.95em;
    font-weight: bold;
    margin: 0 0 4px;
    color: #333;
    line-height: 1.3;
    max-height: 2.6em; /* Limit to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.mytube-suggested-channel,
.mytube-suggested-meta {
    font-size: 0.8em;
    color: #606060;
    margin-bottom: 2px;
}

.mytube-video-listing {
    flex-grow: 1;
    padding: 20px;
    background-color: #f9f9f9;
}

.mytube-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mytube-video-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mytube-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mytube-video-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mytube-video-thumbnail {
    width: 100%;
    height: 160px; /* Fixed height for consistent thumbnails */
    object-fit: cover;
    display: block;
    background-color: #eee; /* Placeholder background */
}

.mytube-video-info {
    padding: 10px 15px;
}

.mytube-video-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.4;
    max-height: 2.8em; /* Limit to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.mytube-video-channel,
.mytube-video-meta {
    font-size: 0.85em;
    color: #606060;
    margin-bottom: 2px;
}

.mytube-sidebar {
    width: 200px;
    background-color: #fff;
    padding: 15px;
    border-right: 1px solid #eee;
    flex-shrink: 0; /* Prevent sidebar from shrinking */
    overflow-y: auto; /* Allow sidebar to scroll */
}

.mytube-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mytube-sidebar li {
    margin-bottom: 8px;
}

.mytube-sidebar a {
    display: block;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mytube-sidebar a:hover,
.mytube-sidebar a.active {
    background-color: #e0e0e0;
}

.mytube-main-content {
    display: flex;
    flex-grow: 1;
    overflow-y: auto; /* Allow content to scroll */
}

/* Headbook Specific Styles (Facebook-like) */
.headbook-page-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f0f2f5; /* Light grey background */
    padding: 0;
}

.headbook-main-content {
    display: flex;
    flex-grow: 1;
    overflow-y: auto;
    gap: 15px;
    padding: 15px; /* Padding for the main content area */
}

.headbook-sidebar {
    width: 250px;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    flex-shrink: 0;
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.headbook-sidebar.right-sidebar {
    width: 200px; /* Slightly narrower right sidebar */
}

.headbook-sidebar .sidebar-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.headbook-sidebar .sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.headbook-sidebar .sidebar-avatar {
    width: 48px;
    height: 48px;
    background-color: #007bff; /* Blue for profile avatar */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.5em;
    margin-right: 10px;
    vertical-align: middle;
}

.headbook-sidebar span {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.headbook-sidebar h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #65676b;
    margin-bottom: 10px;
}

.headbook-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.headbook-sidebar li {
    margin-bottom: 5px;
}

.headbook-sidebar a {
    display: flex; /* For icon alignment */
    align-items: center;
    padding: 8px 10px;
    color: #65676b;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.95em;
}

.headbook-sidebar a:hover {
    background-color: #f2f2f2;
}

.headbook-sidebar p {
    font-size: 0.9em;
    color: #555;
    margin: 5px 0;
}

.headbook-feed {
    flex-grow: 1;
    max-width: 600px; /* Central feed width */
    min-width: 300px;
}

.headbook-create-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.headbook-create-post .post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.headbook-create-post .post-avatar {
    width: 40px;
    height: 40px;
    background-color: #6c757d; /* Grey for general user avatar */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2em;
    margin-right: 10px;
    flex-shrink: 0;
}

.headbook-create-post .post-author {
    font-weight: bold;
    color: #333;
}

.headbook-create-post textarea {
    width: 100%;
    border: none;
    resize: none;
    padding: 10px;
    font-size: 1em;
    border-radius: 8px;
    background-color: #f0f2f5;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
}

.headbook-create-post button {
    background-color: #1877f2; /* Facebook blue */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%; /* Full width button */
    font-weight: bold;
}

.headbook-create-post button:hover {
    background-color: #166fe5;
}

.headbook-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.headbook-post .post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.headbook-post .post-avatar {
    width: 40px;
    height: 40px;
    background-color: #6c757d; /* Grey for general user avatar */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2em;
    margin-right: 10px;
    flex-shrink: 0;
}

.headbook-post .post-meta {
    display: flex;
    flex-direction: column;
}

.headbook-post .post-author {
    font-weight: bold;
    color: #333;
    font-size: 0.95em;
}

.headbook-post .post-time {
    font-size: 0.8em;
    color: #65676b;
}

.headbook-post .post-content p {
    font-size: 0.95em;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
    white-space: pre-wrap; /* Preserve whitespace and allow wrapping */
    word-break: break-word; /* Break long words */
}

.headbook-post .post-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
    margin-bottom: 10px;
}

.headbook-post .post-actions button {
    background: none;
    border: none;
    color: #65676b;
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.headbook-post .post-actions button:hover {
    background-color: #f0f2f5;
    color: #333;
}

/* Headbook Like Button Specific Styles */
.headbook-post .post-actions .like-button {
    color: #65676b; /* Default grey */
    transition: color 0.2s ease, background-color 0.2s ease;
}

.headbook-post .post-actions .like-button.liked {
    color: #1877f2; /* Facebook blue for liked state */
    background-color: #e7f3ff; /* Very light blue background */
}

.headbook-post .post-comments {
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
}

.headbook-comment {
    background-color: #f0f2f5;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.85em;
    line-height: 1.3;
}

.headbook-comment .comment-author {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

.headbook-comment .comment-content {
    color: #555;
}

.headbook-comment .comment-time {
    font-size: 0.75em;
    color: #65676b;
    margin-left: 8px;
    white-space: nowrap;
}

.headbook-post .add-comment-area {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.headbook-post .comment-input {
    flex-grow: 1;
    border: 1px solid #ccd0d5;
    border-radius: 18px; /* More rounded input */
    padding: 8px 12px;
    font-size: 0.9em;
    outline: none;
    background-color: #f0f2f5;
}

.headbook-post .submit-reply-button {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 18px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.headbook-post .submit-reply-button:hover {
    background-color: #166fe5;
}

.status-message {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* Headbook Messages Layout */
.headbook-messages-layout .headbook-main-content {
    padding: 0; /* Remove padding from main content to stretch sidebars */
    gap: 0; /* Remove gap between sidebars and chat area */
}

.headbook-messages-layout .headbook-sidebar {
    border-right: 1px solid #eee;
    border-radius: 0; /* No border radius here for flush layout */
    box-shadow: none; /* No shadow on this sidebar */
}

.headbook-messages-layout .headbook-feed.chat-area {
    background-color: #f0f2f5; /* Chat background */
    display: flex;
    flex-direction: column;
    max-width: none; /* Occupy full available width */
    min-width: unset; /* Allow shrinking */
    flex-grow: 1;
    padding: 0;
}

.chat-contact-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-contact-item:hover {
    background-color: #f2f2f2;
}

.chat-contact-item.active {
    background-color: #e7f3ff; /* Light blue for active chat */
    color: #1877f2;
    font-weight: bold;
}

.chat-contact-avatar {
    width: 40px;
    height: 40px;
    background-color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2em;
    margin-right: 10px;
    flex-shrink: 0;
}

.chat-contact-item.active .chat-contact-avatar {
    background-color: #1877f2; /* Darker blue for active avatar */
}

.chat-contact-name {
    flex-grow: 1;
    font-size: 1em;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
}

.message-list {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
}

.message-bubble.user {
    background-color: #1877f2; /* Blue bubble for user */
    color: white;
    align-self: flex-end; /* Align to the right */
    border-bottom-right-radius: 2px; /* Pointy corner */
}

.message-bubble.ai {
    background-color: #e4e6eb; /* Light grey bubble for AI */
    color: #333;
    align-self: flex-start; /* Align to the left */
    border-bottom-left-radius: 2px; /* Pointy corner */
}

.message-bubble .message-author {
    font-weight: bold;
    font-size: 0.8em;
    opacity: 0.8;
    display: block;
    margin-bottom: 5px;
    /* Color adjusted for readability on respective backgrounds */
    color: inherit;
}
.message-bubble.user .message-author {
    color: rgba(255, 255, 255, 0.9);
}
.message-bubble.ai .message-author {
    color: #65676b;
}

.message-bubble p {
    margin: 0;
    font-size: 0.9em;
}

.message-bubble .message-time {
    font-size: 0.7em;
    display: block;
    margin-top: 5px;
    opacity: 0.6;
    text-align: right; /* Time at bottom right of bubble */
    /* Color adjusted for readability on respective backgrounds */
    color: inherit;
}
.message-bubble.user .message-time {
    color: rgba(255, 255, 255, 0.8);
}
.message-bubble.ai .message-time {
    color: #888;
}

.message-input-area {
    display: flex;
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    gap: 10px;
    flex-shrink: 0;
}

.message-input-area input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.95em;
    outline: none;
    background-color: #f0f2f5;
}

.message-input-area button {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: bold;
    flex-shrink: 0;
}

.message-input-area button:hover {
    background-color: #166fe5;
}

/* Mobile-specific adjustments for MyTube */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: stretch;
    }
    .app-header .app-header-button {
        margin: 10px auto 0; /* Center button when stacked */
        width: 100%;
        max-width: 200px;
    }
    .mytube-channel-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 10px;
    }
    .mytube-channel-details {
        text-align: center;
    }
    .mytube-channel-actions {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    .mytube-input {
        width: 90%;
    }
    .mytube-button {
        width: 90%;
        max-width: 250px;
    }
    .mytube-channel-form-card {
        padding: 20px;
        margin: 20px auto;
    }
    .navigation-buttons {
        flex-wrap: wrap; /* Allow fpoints counter to wrap too */
        justify-content: center;
    }
    .fpoints-counter {
        margin-top: 5px; /* Add some margin if it wraps below buttons */
    }

    /* Shop mobile adjustments */
    .shop-main-content {
        flex-direction: column; /* Stack sidebar and content */
    }
    .shop-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px;
    }
    .shop-listing {
        padding: 15px;
    }
    .shop-item-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Smaller cards on mobile */
    }
    .shop-item-icon-container {
        height: 100px;
    }
    .shop-item-icon {
        width: 60px;
        height: 60px;
    }
    .shop-item-title {
        font-size: 1em;
        min-height: 2.4em; /* Adjust for smaller font */
    }
    .shop-item-description {
        font-size: 0.8em;
        min-height: 3.2em; /* Adjust for smaller font */
    }
}

/* Mobile-specific adjustments for Headbook */
@media (max-width: 768px) {
    .headbook-main-content {
        flex-direction: column;
        padding: 10px;
    }
    .headbook-sidebar {
        width: 100%;
        margin-bottom: 15px;
    }
    .headbook-sidebar.right-sidebar {
        display: none; /* Hide right sidebar on small screens */
    }
    .headbook-feed {
        max-width: 100%;
        min-width: unset;
    }
    .headbook-post .post-actions button {
        padding: 6px 8px;
        font-size: 0.8em;
    }
    .headbook-post .post-header {
        margin-bottom: 5px;
    }
    .headbook-comment {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    .headbook-post .comment-input {
        padding: 6px 10px;
        font-size: 0.85em;
    }
    .headbook-post .submit-reply-button {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    /* Headbook Messages mobile adjustments */
    .headbook-messages-layout .headbook-sidebar {
        width: 100%;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
    }
    .headbook-messages-layout .chat-area {
        height: 100%; /* Take remaining height */
    }
    .message-bubble {
        max-width: 85%; /* Make bubbles a bit wider on small screens */
    }
}

/* Smaller screens (e.g., portrait phone) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .browser-frame {
        border-radius: 5px;
        min-height: 350px;
    }

    .browser-header {
        padding: 6px;
    }

    .browser-button {
        width: 10px;
        height: 10px;
    }

    .nav-button {
        padding: 3px 6px;
        font-size: 1em;
    }

    .cookie-button {
        color: #cc7e0a;
    }

    .fpoints-counter {
        font-size: 0.8em;
        padding: 3px 8px;
    }
    /* Adjust notification position for smaller screens */
    .fpoints-notification {
        font-size: 0.8em; /* Match smaller fpoints counter size */
        transform: translateY(-50%) translateX(3px); /* Slightly less horizontal offset */
    }
    @keyframes fadeOutUp {
        0% {
            opacity: 1;
            transform: translateY(-50%) translateX(3px);
        }
        100% {
            opacity: 0;
            transform: translateY(-100%) translateX(3px);
        }
    }

    .address-bar {
        font-size: 0.9em;
        padding: 7px 10px;
    }

    .go-button {
        padding: 7px 12px;
        font-size: 0.9em;
    }

    .browser-content {
        padding: 10px;
        font-size: 0.85em;
    }

    /* Home page very small screen adjustments */
    .home-page-content h1 {
        font-size: 1.8em;
    }

    .app-logo { /* Also affects home page logo */
        width: 100px;
    }

    .home-page-search-container {
        border-radius: 20px; /* Slightly smaller radius */
    }
    .home-page-search-input,
    .home-page-search-button {
        padding: 8px 12px;
        font-size: 0.85em;
        border-radius: 20px 0 0 20px; /* Adjust rounding */
    }
    .home-page-search-button {
        border-radius: 0 20px 20px 0; /* Adjust rounding */
    }

    .home-page-buttons-container {
        gap: 10px; /* Reduce gap on very small screens */
    }

    .quick-links li {
        width: 90%; /* Max width for quick links */
    }
    .quick-links li a {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .home-page-button {
        padding: 8px 15px;
        font-size: 0.9em;
        width: 100%; /* Make buttons take full width on very small screens */
        max-width: none;
    }

    /* Shop very small screen adjustments */
    .shop-item-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Even smaller cards */
    }
    .shop-listing h1 {
        font-size: 1.6em;
    }

    /* Headbook messages very small screen adjustments */
    .headbook-messages-layout .chat-header {
        padding: 10px 15px;
    }
    .headbook-messages-layout .chat-header h3 {
        font-size: 1.1em;
    }
    .message-input-area {
        padding: 10px 15px;
    }
    .message-input-area input {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    .message-input-area button {
        padding: 8px 15px;
        font-size: 0.85em;
    }
    .message-bubble {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}

/* Improved notification UI for settings */
.fexplorer-notification {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 90vw;
    background: #28a745;
    color: #fff;
    padding: 14px 32px 14px 48px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    font-size: 1.08em;
    font-family: inherit;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, bottom 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fexplorer-notification.show {
    opacity: 1;
    pointer-events: auto;
    bottom: 56px;
}
.fexplorer-notification.success {
    background: #28a745;
    color: #fff;
}
.fexplorer-notification.error {
    background: #e74c3c;
    color: #fff;
}
.fexplorer-notification .notif-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    margin-right: 8px;
}

/* OS-specific window button styles */
.window-mac .browser-buttons {
    justify-content: flex-start;
    gap: 6px;
}
.window-mac .browser-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 2px;
}
.window-mac .browser-close { background: #ff5f57; }
.window-mac .browser-minimize { background: #ffbd2e; }
.window-mac .browser-maximize { background: #28c940; }

.window-win11 .browser-buttons,
.window-win7 .browser-buttons {
    justify-content: flex-end;
    gap: 0;
}
.window-win11 .browser-button,
.window-win7 .browser-button {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-left: 8px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    border: none;
}
.window-win11 .browser-close { background: #e81123; }
.window-win11 .browser-minimize { background: #f9f9f9; color: #333; }
.window-win11 .browser-maximize { background: #16c60c; }
.window-win7 .browser-close { background: #c00; }
.window-win7 .browser-minimize { background: #f9f9f9; color: #333; }
.window-win7 .browser-maximize { background: #00c000; }

/* Add icons for Win buttons */
.window-win11 .browser-close::after,
.window-win7 .browser-close::after {
    content: '\2715'; /* X */
    font-size: 12px;
}
.window-win11 .browser-minimize::after,
.window-win7 .browser-minimize::after {
    content: '\2013'; /* – */
    font-size: 14px;
    color: #333;
}
.window-win11 .browser-maximize::after,
.window-win7 .browser-maximize::after {
    content: '\25A1'; /* □ */
    font-size: 12px;
}

/* Dark mode styles for FExplorer */
body.fexplorer-dark-mode,
.fexplorer-dark-mode .settings-page-content,
.fexplorer-dark-mode .home-page-content,
.fexplorer-dark-mode .settings-section,
.fexplorer-dark-mode .app-header,
.fexplorer-dark-mode .fexplorer-button,
.fexplorer-dark-mode .settings-save-btn,
.fexplorer-dark-mode .settings-reset-btn {
    background-color: #181a1b !important;
    color: #e0e0e0 !important;
}
.fexplorer-dark-mode .app-header {
    border-bottom: 1px solid #333;
}
.fexplorer-dark-mode .fexplorer-button,
.fexplorer-dark-mode .settings-save-btn {
    background-color: #218838 !important;
    color: #fff !important;
}
.fexplorer-dark-mode .settings-reset-btn {
    background-color: #c0392b !important;
    color: #fff !important;
}
.fexplorer-dark-mode select,
.fexplorer-dark-mode input[type="text"],
.fexplorer-dark-mode input[type="search"],
.fexplorer-dark-mode textarea {
    background-color: #222 !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}
.fexplorer-dark-mode .footer-note {
    color: #aaa !important;
}

/* FExplorer Settings Page CSS */
.settings-page-content {
    max-width: 520px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 32px 28px 24px 28px;
    font-family: inherit;
}
.settings-section {
    margin-top: 18px;
    margin-bottom: 18px;
}
.settings-section h2 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: #28a745;
}
.settings-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.settings-section li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.settings-section label {
    min-width: 140px;
    font-weight: 500;
    color: #333;
}
.settings-section select,
.settings-section input[type="checkbox"] {
    font-size: 1em;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    color: #333;
}
.settings-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #28a745;
}
.settings-section button.fexplorer-button {
    margin-left: 8px;
}
#settingsStatus {
    font-size: 1em;
    margin-top: 10px;
    color: #28a745;
    font-weight: 500;
}
/* Dark mode for settings page */
.fexplorer-dark-mode .settings-page-content {
    background: #181a1b;
    color: #e0e0e0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.fexplorer-dark-mode .settings-section h2 {
    color: #28a745;
}
.fexplorer-dark-mode .settings-section label {
    color: #e0e0e0;
}
.fexplorer-dark-mode .settings-section select,
.fexplorer-dark-mode .settings-section input[type="checkbox"] {
    background: #222;
    color: #e0e0e0;
    border: 1px solid #444;
}
.fexplorer-dark-mode #settingsStatus {
    color: #28a745;
}

/* FExplorer Button Styles */
.fexplorer-button,
.settings-save-btn,
.settings-reset-btn {
    border-radius: 5px;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    margin-right: 8px;
    background-color: #28a745;
    color: #fff;
}
.fexplorer-button:hover,
.settings-save-btn:hover {
    background-color: #218838;
}
.settings-reset-btn {
    background-color: #e74c3c;
    color: #fff;
}
.settings-reset-btn:hover {
    background-color: #c0392b;
}
/* Dark mode for buttons */
.fexplorer-dark-mode .fexplorer-button,
.fexplorer-dark-mode .settings-save-btn {
    background-color: #218838 !important;
    color: #fff !important;
}
.fexplorer-dark-mode .settings-reset-btn {
    background-color: #c0392b !important;
    color: #fff !important;
}

/* FExplorer Updates Page CSS */
.updates-page-content {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 32px 28px 24px 28px;
    font-family: inherit;
}
.updates-page-content h1 {
    font-size: 2em;
    color: #28a745;
    margin-bottom: 18px;
}
.updates-page-content h2 {
    font-size: 1.2em;
    color: #007bff;
    margin-top: 24px;
    margin-bottom: 10px;
}
.updates-section {
    margin-bottom: 24px;
}
.updates-section ul {
    padding-left: 20px;
    margin: 0;
}
.updates-section li {
    margin-bottom: 8px;
    font-size: 1em;
    color: #333;
}
.updates-page-content .app-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}
.updates-page-content .tagline {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 18px;
}
.updates-page-content .home-page-buttons-container {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}
.updates-page-content .footer-note {
    color: #aaa;
    font-size: 0.95em;
    margin-top: 20px;
    text-align: center;
}
/* Dark mode for updates page */
.fexplorer-dark-mode .updates-page-content {
    background: #181a1b;
    color: #e0e0e0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.fexplorer-dark-mode .updates-page-content h1 {
    color: #28a745;
}
.fexplorer-dark-mode .updates-page-content h2 {
    color: #66aaff;
}
.fexplorer-dark-mode .updates-section li {
    color: #e0e0e0;
}
.fexplorer-dark-mode .updates-page-content .footer-note {
    color: #aaa;
}

/* FExplorer Create Page Styles */
.fexplorer-create-wrapper {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 40px auto;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.fexplorer-create-header {
    background: linear-gradient(90deg, #007bff 0%, #28a745 100%);
    color: #fff;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fexplorer-create-header .app-logo {
    width: 40px;
    height: 40px;
    margin-right: 16px;
}
.fexplorer-create-header .app-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-right: auto;
}
.fexplorer-create-header nav {
    display: flex;
    gap: 16px;
}
.fexplorer-create-header .app-header-button {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.fexplorer-create-header .app-header-button:hover {
    background: rgba(255,255,255,0.3);
}
.fexplorer-create-main {
    padding: 32px;
}
.fexplorer-create-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
}
.fexplorer-create-form h2 {
    margin-top: 0;
    color: #007bff;
}
.mode-toggle {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #d0d7de;
    font-size: 1em;
    margin-top: 4px;
    box-sizing: border-box;
}
.form-group textarea {
    resize: vertical;
}
.created-button-preview {
    background: #f0f4f8;
    border-radius: 5px;
    padding: 6px 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.created-button-preview .remove-button {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.95em;
    margin-left: 10px;
}
.created-button-preview .remove-button:hover {
    background: #c0392b;
}
.fexplorer-create-actions {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}
.fexplorer-create-actions .fexplorer-button {
    font-size: 1em;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #007bff;
    color: #fff;
    transition: background 0.2s;
}
.fexplorer-create-actions .fexplorer-button:hover {
    background: #0056b3;
}
.status-message {
    color: #28a745;
    font-size: 1em;
    margin-top: 10px;
}
.fexplorer-create-footer {
    background: #f0f4f8;
    color: #555;
    text-align: center;
    padding: 14px 0;
    font-size: 0.95em;
    border-top: 1px solid #e0e6ed;
}
.code-note {
    color: #888;
    font-size: 0.95em;
    margin-top: 8px;
    display: block;
}

/* FExplorer Creator Hub Page Styles (matches Create Page) */
.create-hub-page-layout {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 40px auto;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}
.create-hub-page-layout .app-header {
    background: linear-gradient(90deg, #007bff 0%, #28a745 100%);
    color: #fff;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}
.create-hub-page-layout .app-logo {
    width: 40px;
    height: 40px;
    margin-right:  16px;
 }
.create-hub-page-layout .app-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-right: auto;
    color:#fff;
}
.create-hub-page-layout .app-header-button {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.create-hub-page-layout .app-header-button:hover {
    background: rgba(255,255,255,0.3);
}
.create-hub-main-content {
    padding: 32px;
}
.create-hub-main-content h1 {
    margin-top: 0;
    color: #007bff;
}
.hub-item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}
.hub-item-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}
.hub-item-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.hub-item-card h3 {
    margin: 0 0 8px 0;
    color: #28a745;
    font-size: 1.2em;
}
.hub-item-card p {
    color: #555;
    font-size: 1em;
    margin-bottom: 10px;
}
.view-page-button {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s;
}
.view-page-button:hover {
    background: #0056b3;
}
.status-message {
    color: #28a745;
    font-size: 1em;
    margin-top: 10px;
}
.footer-note {
    background: #f0f4f8;
    color: #555;
    text-align: center;
    padding: 14px 0;
    font-size: 0.95em;
    border-top: 1px solid #e0e6ed;
    margin-top: 30px;
}

/* Make settings page content fit fully inside browser-frame */
.browser-frame .settings-page-content {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 400px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.browser-frame .settings-section {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 24px;
    margin-top: 24px;
}

.browser-frame .app-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}