/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cantarell', 'Segoe UI', sans-serif;
    background: #2d2d2d;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

/* Desktop */
#desktop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 20px;
}

/* Desktop Icons */
.desktop-icon {
    width: 80px;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon i {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.desktop-icon span {
    font-size: 12px;
    color: #fff;
    display: block;
    word-wrap: break-word;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#activities {
    padding: 8px 16px;
    cursor: pointer;
    background: transparent;
    border-radius: 4px;
    transition: background 0.2s;
    font-weight: 500;
}

#activities:hover,
#activities.active {
    background: rgba(255, 255, 255, 0.1);
}

#search-icon {
    padding: 8px 12px;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

#search-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

#window-list {
    flex: 1;
    display: flex;
    gap: 5px;
    margin-left: 10px;
    overflow-x: auto;
    align-items: center;
}

.window-list-item {
    padding: 5px 12px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
    border: 1px solid #555;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-size: 12px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

.window-list-item:hover {
    background: linear-gradient(180deg, #454545 0%, #383838 100%);
    border-color: #666;
}

.window-list-item.active {
    background: linear-gradient(180deg, #4a90d9 0%, #3a7bc8 100%);
    border-color: #2f75d1;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.5);
}

#clock {
    padding: 8px 16px;
    font-size: 14px;
}

#system-tray {
    display: flex;
    gap: 15px;
    padding: 0 10px;
}

#system-tray i {
    cursor: pointer;
    transition: color 0.2s;
}

#system-tray i:hover {
    color: #4a90d9;
}

/* Windows */
.window {
    position: absolute;
    background: #2d2d2d;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 40px) !important;
    border-radius: 0;
}

.window.minimized {
    display: none;
}

.title-bar {
    background: #383838;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.title-bar h3 {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls button {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimize-btn {
    background: #f4bf4f;
}

.maximize-btn {
    background: #62c554;
}

.close-btn {
    background: #ed5f5f;
}

.window-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: #2d2d2d;
}

/* Activities Overlay */
#activities-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
}

#activities-overlay.hidden {
    display: none;
}

#search-bar-container {
    width: 600px;
    margin-bottom: 50px;
}

#activities-search {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    background: #383838;
    border: none;
    border-radius: 8px;
    color: #fff;
    outline: none;
}

#app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 30px;
    justify-content: center;
    max-width: 800px;
}

.app-icon {
    width: 120px;
    text-align: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.2s;
}

.app-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-icon i {
    font-size: 64px;
    display: block;
    margin-bottom: 10px;
    color: #fff;
}

.app-icon span {
    font-size: 13px;
    color: #fff;
    display: block;
}

/* Search Overlay */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

#search-overlay.hidden {
    display: none;
}

#search-container {
    width: 600px;
    position: relative;
    margin-bottom: 30px;
}

#search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 18px;
    background: #383838;
    border: none;
    border-radius: 8px;
    color: #fff;
    outline: none;
}

#search-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#search-results {
    width: 600px;
    max-height: 500px;
    overflow-y: auto;
}

.search-result-item {
    background: #383838;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #4a4a4a;
}

.search-result-item h4 {
    margin-bottom: 5px;
    color: #4a90d9;
}

.search-result-item p {
    font-size: 13px;
    color: #aaa;
}

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

.modal.hidden {
    display: none;
}

.modal-content {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #fff;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #383838;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: #4a90d9;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-content button:hover {
    background: #3a7bc8;
}

/* Forms */
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #f6f5f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
}

.form-button {
    padding: 10px 20px;
    background: #4a90d9;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.form-button:hover {
    background: #2f75d1;
}

/* Override Prism theme for better integration */
pre[class*="language-"] {
    margin: 0 !important;
    padding: 1em !important;
    background: #1e1e1e !important;
    font-size: 13px !important;
}

code[class*="language-"] {
    background: transparent !important;
    color: #d4d4d4 !important;
}

.line-numbers .line-numbers-rows {
    border-right: 1px solid #444 !important;
    background: #252526 !important;
}

.line-numbers-rows>span:before {
    color: #858585 !important;
}

/* Ensure line numbers are visible */
pre.line-numbers {
    position: relative;
    padding-left: 3.8em !important;
    counter-reset: linenumber;
}

pre.line-numbers>code {
    position: relative;
    white-space: inherit;
}

/* Quill Editor Styling */
.ql-toolbar {
    background: #f6f5f4 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px 4px 0 0 !important;
}

.ql-container {
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 0 0 4px 4px !important;
    min-height: 200px;
}

.ql-editor {
    min-height: 200px;
    font-size: 14px;
    color: #333;
}

/* Category Form */
.category-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list {
    margin-top: 20px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #383838;
    margin-bottom: 10px;
    border-radius: 4px;
}

.category-item button {
    margin-left: 5px;
    padding: 5px 10px;
    background: #e01b24;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

/* Post Styles */
.post-list {
    margin-top: 20px;
}

.post-item {
    padding: 15px;
    background: #383838;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.post-item:hover {
    background: #4a4a4a;
}

.post-item h3 {
    margin-bottom: 10px;
    color: #4a90d9;
}

.post-item p {
    color: #ccc;
    font-size: 14px;
}

.post-content {
    color: #fff;
    line-height: 1.6;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Terminal Styles */
.terminal-container {
    background: #1a1a1a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 15px;
    height: 100%;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 5px;
    white-space: pre-wrap;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #4a90d9;
    margin-right: 5px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    flex: 1;
}

/* Settings Window */
.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #444;
}

.settings-tab {
    padding: 10px 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.settings-tab.active {
    color: #fff;
    border-bottom-color: #4a90d9;
}

.settings-content {
    display: none;
}

.settings-content.active {
    display: block;
}

/* About Me Styles (Nautilus-like) */
.about-container {
    display: flex;
    height: 100%;
    background: #2d2d2d;
}

.about-sidebar {
    width: 200px;
    background: #252526;
    border-right: 1px solid #444;
    overflow-y: auto;
}

.about-sidebar-item {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.about-sidebar-item:hover {
    background: #2d2d2d;
}

.about-sidebar-item.active {
    background: #333;
    border-left-color: #4a90d9;
    color: #ffffff;
}

.about-sidebar-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.about-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    color: #fff;
    background: transparent !important;
    line-height: 1.6;
}

.about-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 22px;
}

.about-content p {
    margin-bottom: 1em;
}

.about-content ul,
.about-content ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

/* Pastebin Styles */
.paste-container {
    display: flex;
    height: 100%;
    background: #1e1e1e;
}

.paste-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.paste-sidebar {
    width: 250px;
    background: #2d2d2d;
    border-left: 1px solid #444;
    overflow-y: auto;
}

.paste-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    transition: background 0.2s;
}

.paste-item:hover {
    background: #333;
}

/* Weather App Styles */
.weather-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.weather-search {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-search input {
    flex: 1;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
}

.weather-search button {
    background: #4a90d9 !important;
    border: none !important;
}

.weather-current {
    padding: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.weather-location h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.weather-location p {
    margin: 5px 0 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 20px 0;
}

.weather-icon-large {
    font-size: 100px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.weather-temp {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 72px;
    font-weight: 200;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.temp-unit {
    font-size: 28px;
    margin-top: 8px;
    margin-left: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.weather-description {
    text-align: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.weather-detail-item i {
    font-size: 24px;
    color: #fff;
    opacity: 0.9;
}

.detail-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

/* Calculator App Styles */
.calculator-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #2d2d2d;
    font-family: 'Cantarell', sans-serif;
}

.calculator-display {
    background: #252526;
    padding: 20px;
    text-align: right;
    border-bottom: 1px solid #444;
}

.calculator-expression {
    color: #888;
    font-size: 14px;
    min-height: 20px;
    margin-bottom: 5px;
}

.calculator-result {
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    min-height: 45px;
    overflow-x: auto;
    word-break: break-all;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    flex: 1;
    background: #1a1a1a;
    padding: 1px;
}

/* Map View Styles */
#map-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    border: 1px solid #444;
    z-index: 1;
    /* Ensure map controls are clickable */
}

/* Fix Leaflet dark mode contrast if needed */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #333;
    color: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

/* Autocomplete Styles */
.tp-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.tp-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c3e50;
    border: 1px solid #444;
    border-top: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.tp-autocomplete-item {
    padding: 8px 12px;
    color: #eee;
    cursor: pointer;
    border-bottom: 1px solid #3e5871;
    font-size: 14px;
}

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

.tp-autocomplete-item:hover {
    background: #34495e;
}

/* Weather Badge Styles */
.tp-weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
    vertical-align: middle;
}

.tp-weather-badge i {
    font-size: 14px;
}

.tp-weather-badge.historical {
    background: rgba(241, 196, 15, 0.1);
    border-color: #f1c40f;
    color: #f1c40f;
    cursor: help;
}

.tp-weather-badge.loading {
    border-color: #95a5a6;
    color: #95a5a6;
    background: transparent;
}

.calc-btn {
    background: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(180deg, #454545 0%, #383838 100%);
}

.calc-btn:active {
    background: linear-gradient(180deg, #2d2d2d 0%, #252526 100%);
}

.calc-btn-secondary {
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    color: #4a90d9;
}

.calc-btn-secondary:hover {
    background: linear-gradient(180deg, #555 0%, #454545 100%);
}

.calc-btn-operator {
    background: linear-gradient(180deg, #f09d58 0%, #e6893d 100%);
    color: #fff;
    font-size: 24px;
}

.calc-btn-operator:hover {
    background: linear-gradient(180deg, #f5ab6f 0%, #f09d58 100%);
}

.calc-btn-equals {
    background: linear-gradient(180deg, #4a90d9 0%, #3a7bc8 100%);
    color: #fff;
    font-size: 24px;
}

.calc-btn-equals:hover {
    background: linear-gradient(180deg, #5ba0e9 0%, #4a90d9 100%);
}

.calc-btn-zero {
    grid-column: span 2;
}

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

/* Percentage Calculator Styles */
.percent-calc-container {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    background: #2d2d2d;
}

.percent-calc-section {
    background: #383838;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.percent-calc-title {
    color: #4a90d9;
    font-size: 18px;
    margin-bottom: 10px;
}

.percent-calc-desc {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.percent-calc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.percent-input {
    background: #2d2d2d;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    width: 120px;
}

.percent-input-small {
    background: #2d2d2d;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    padding: 8px;
    font-size: 14px;
    width: 100px;
}

.percent-label {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.percent-calc-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.percent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.percent-btn-calculate {
    background: linear-gradient(180deg, #62c554 0%, #4ea83f 100%);
    color: #fff;
}

.percent-btn-calculate:hover {
    background: linear-gradient(180deg, #70d362 0%, #62c554 100%);
}

.percent-btn-clear {
    background: linear-gradient(180deg, #888 0%, #666 100%);
    color: #fff;
}

.percent-btn-clear:hover {
    background: linear-gradient(180deg, #999 0%, #777 100%);
}

.percent-calc-phrase {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #2d2d2d;
    border-radius: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.percent-result {
    display: none;
    background: #4a90d9;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

.percent-calc-diff {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 6px;
}

.percent-diff-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.percent-diff-row .percent-label {
    min-width: 60px;
}

.percent-diff-row .percent-input {
    flex: 1;
}

/* Password Generator Styles */
.password-gen-container {
    padding: 25px;
    background: #2d2d2d;
    height: 100%;
    overflow-y: auto;
}

.password-gen-display {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    background: #f6f5f4;
    padding: 15px;
    border-radius: 8px;
}

.password-gen-output {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    color: #333;
    font-weight: 600;
}

.password-gen-refresh {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.password-gen-refresh:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.password-gen-copy {
    background: linear-gradient(180deg, #e01b24 0%, #c01018 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.password-gen-copy:hover {
    background: linear-gradient(180deg, #f02b34 0%, #e01b24 100%);
}

.password-strength {
    margin-bottom: 25px;
    background: #383838;
    padding: 15px;
    border-radius: 8px;
}

.password-strength-bar {
    height: 8px;
    background: #4a4a4a;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.password-strength-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: currentColor;
    border-radius: 4px;
}

.strength-weak {
    color: #e01b24;
}

.strength-medium {
    color: #f09d58;
}

.strength-strong {
    color: #62c554;
}

.password-strength-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.password-strength-text i {
    color: #4a90d9;
}

.password-gen-options {
    background: #c8e6c9;
    padding: 20px;
    border-radius: 8px;
}

.password-length-section {
    margin-bottom: 20px;
}

.password-label {
    display: block;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

#length-value {
    font-weight: 700;
}

.password-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #4a4a4a 0%, #888 100%);
    outline: none;
    -webkit-appearance: none;
}

.password-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid #4a90d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.password-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid #4a90d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.password-characters {
    margin-top: 15px;
}

.password-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.password-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 14px;
}

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

.password-checkbox span {
    user-select: none;
}

/* Wallpaper Manager Styles */
.wallpaper-container {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    background: #2d2d2d;
}

.wallpaper-upload-section {
    background: #383838;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wallpaper-upload-section h3 {
    color: #4a90d9;
    margin-bottom: 15px;
}

#wallpaper-upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.wallpaper-file-input {
    flex: 1;
    background: #2d2d2d;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    padding: 10px;
}

.wallpaper-upload-btn {
    background: linear-gradient(180deg, #4a90d9 0%, #3a7bc8 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.wallpaper-upload-btn:hover {
    background: linear-gradient(180deg, #5ba0e9 0%, #4a90d9 100%);
}

.wallpaper-hint {
    color: #888;
    font-size: 12px;
    margin: 0;
}

.wallpaper-gallery-section {
    background: #383838;
    border-radius: 8px;
    padding: 20px;
}

.wallpaper-gallery-section h3 {
    color: #4a90d9;
    margin-bottom: 15px;
}

.wallpaper-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.wallpaper-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.wallpaper-item:hover {
    transform: scale(1.05);
}

.wallpaper-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.wallpaper-item:hover .wallpaper-overlay {
    opacity: 1;
}

.wallpaper-delete-btn {
    background: linear-gradient(180deg, #e01b24 0%, #c01018 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.wallpaper-delete-btn:hover {
    background: linear-gradient(180deg, #f02b34 0%, #e01b24 100%);
}

/* Clock/Timer Application Styles */
.clock-timer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #2d2d2d;
}

.clock-timer-tabs {
    display: flex;
    background: #383838;
    border-bottom: 2px solid #4a90d9;
}

.clock-timer-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #aaa;
    padding: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.clock-timer-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.clock-timer-tab.active {
    color: #4a90d9;
    border-bottom-color: #4a90d9;
    background: rgba(74, 144, 217, 0.1);
}

.clock-timer-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* World Clock */
.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.world-clock-item {
    background: #383838;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.world-clock-city {
    color: #4a90d9;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.world-clock-time {
    color: #fff;
    font-size: 28px;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
}

.world-clock-date {
    color: #888;
    font-size: 12px;
}

/* Timer */
.timer-display {
    text-align: center;
    font-size: 64px;
    font-family: 'Courier New', monospace;
    color: #4a90d9;
    margin: 30px 0;
    font-weight: 300;
}

.timer-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.timer-input-group {
    text-align: center;
}

.timer-input-group label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.timer-input-group input {
    width: 70px;
    background: #383838;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    padding: 10px;
    font-size: 20px;
    text-align: center;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.timer-btn {
    background: linear-gradient(180deg, #4a90d9 0%, #3a7bc8 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.timer-btn:hover {
    background: linear-gradient(180deg, #5ba0e9 0%, #4a90d9 100%);
}

.timer-btn-reset {
    background: linear-gradient(180deg, #888 0%, #666 100%);
}

.timer-btn-reset:hover {
    background: linear-gradient(180deg, #999 0%, #777 100%);
}

/* Stopwatch */
.stopwatch-display {
    text-align: center;
    font-size: 56px;
    font-family: 'Courier New', monospace;
    color: #62c554;
    margin: 30px 0;
    font-weight: 300;
}

.stopwatch-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stopwatch-btn {
    background: linear-gradient(180deg, #62c554 0%, #4ea83f 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.stopwatch-btn:hover {
    background: linear-gradient(180deg, #70d362 0%, #62c554 100%);
}

.stopwatch-btn-reset {
    background: linear-gradient(180deg, #888 0%, #666 100%);
}

.stopwatch-btn-reset:hover {
    background: linear-gradient(180deg, #999 0%, #777 100%);
}

.stopwatch-laps {
    max-height: 200px;
    overflow-y: auto;
    background: #383838;
    border-radius: 6px;
    padding: 10px;
}

.stopwatch-lap-item {
    color: #fff;
    padding: 8px;
    border-bottom: 1px solid #555;
    font-family: 'Courier New', monospace;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Activities Overlay */
    #activities-overlay {
        padding: 10px;
    }

    #activities-search {
        width: calc(100% - 20px);
        font-size: 14px;
        padding: 10px;
        margin: 10px;
    }

    /* App Grid - More columns on mobile */
    #app-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px;
        padding: 10px;
        max-width: 100%;
    }

    /* Smaller app icons on mobile */
    .app-icon {
        width: auto !important;
        padding: 10px 5px;
    }

    .app-icon i {
        font-size: 32px !important;
    }

    .app-icon span {
        font-size: 11px !important;
        margin-top: 5px;
    }

    /* Desktop icons - smaller on mobile */
    .desktop-icon {
        width: 60px;
    }

    .desktop-icon i {
        font-size: 32px;
    }

    .desktop-icon span {
        font-size: 11px;
    }

    /* Windows - full screen on mobile */
    .window {
        width: 100% !important;
        height: calc(100vh - 100px) !important;
        max-width: 100% !important;
        max-height: calc(100vh - 100px) !important;
        left: 0 !important;
        top: 50px !important;
    }

    /* Taskbar responsiveness */
    #taskbar {
        padding: 5px 10px;
    }

    #clock {
        font-size: 12px;
        margin-left: 10px;
    }

    .window-list-item {
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    #app-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }

    .app-icon i {
        font-size: 28px !important;
    }

    .app-icon span {
        font-size: 10px !important;
    }
}

}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #4a90d9;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 0 10px rgba(74, 144, 217, 0.5);
    animation: cursorPulse 2s infinite;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #4a90d9;
    border-radius: 50%;
}

.custom-cursor.clicking {
    transform: scale(0.8);
    box-shadow: 0 0 20px rgba(74, 144, 217, 0.8);
}

.custom-cursor.hovering {
    transform: scale(1.3);
    border-color: #62c554;
    box-shadow: 0 0 15px rgba(98, 197, 84, 0.6);
}

@keyframes cursorPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(74, 144, 217, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(74, 144, 217, 0.8);
    }
}

/* Hide default cursor on clickable elements */
a,
button,
input,
select,
textarea,
.app-icon,
.window,
.desktop-icon,
.close-btn,
.minimize-btn,
.maximize-btn {
    cursor: none !important;
}

}

.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cursor-arrow {
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 0 3px rgba(74, 144, 217, 0.8)) drop-shadow(0 0 8px rgba(74, 144, 217, 0.4));
    animation: cursorGlow 2s infinite;
}

.custom-cursor.clicking .cursor-arrow {
    transform: scale(0.9);
    filter: drop-shadow(0 0 5px rgba(74, 144, 217, 1)) drop-shadow(0 0 12px rgba(74, 144, 217, 0.6));
}

.custom-cursor.hovering .cursor-arrow path {
    fill: #62c554;
    filter: drop-shadow(0 0 3px rgba(98, 197, 84, 0.8)) drop-shadow(0 0 10px rgba(98, 197, 84, 0.5));
}

@keyframes cursorGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 3px rgba(74, 144, 217, 0.8)) drop-shadow(0 0 8px rgba(74, 144, 217, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 5px rgba(74, 144, 217, 1)) drop-shadow(0 0 12px rgba(74, 144, 217, 0.6));
    }
}

/* Hide default cursor on clickable elements */
a,
button,
input,
select,
textarea,
.app-icon,
.window,
.desktop-icon,
.close-btn,
.minimize-btn,
.maximize-btn {
    cursor: none !important;
}

/* Custom Animated Arrow Cursor - Updated */
* {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease, opacity 0.15s ease;
}

.cursor-arrow {
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 0 3px rgba(74, 144, 217, 0.8)) drop-shadow(0 0 6px rgba(74, 144, 217, 0.4));
    animation: cursorGlow 2s infinite;
    transition: filter 0.2s ease;
}

.custom-cursor.clicking .cursor-arrow {
    transform: scale(0.85);
    filter: drop-shadow(0 0 5px rgba(74, 144, 217, 1)) drop-shadow(0 0 10px rgba(74, 144, 217, 0.6));
}

.custom-cursor.hovering .cursor-arrow {
    transform: scale(1.1);
}

.custom-cursor.hovering .cursor-arrow path {
    fill: #62c554;
    filter: drop-shadow(0 0 4px rgba(98, 197, 84, 0.9)) drop-shadow(0 0 8px rgba(98, 197, 84, 0.5));
}

@keyframes cursorGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 3px rgba(74, 144, 217, 0.8)) drop-shadow(0 0 6px rgba(74, 144, 217, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 4px rgba(74, 144, 217, 1)) drop-shadow(0 0 8px rgba(74, 144, 217, 0.5));
    }
}

/* Hide default cursor */
a,
button,
input,
select,
textarea,
.app-icon,
.window,
.desktop-icon,
.close-btn,
.minimize-btn,
.maximize-btn {
    cursor: none !important;
}

/* Base64 Encoder/Decoder Styles */
.base64-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #2d2d2d;
    padding: 20px;
}

.base64-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #4a90d9;
}

.base64-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #aaa;
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.base64-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.base64-tab.active {
    color: #4a90d9;
    border-bottom-color: #4a90d9;
    background: rgba(74, 144, 217, 0.1);
}

.base64-tab i {
    margin-right: 5px;
}

.base64-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.base64-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.base64-label {
    color: #4a90d9;
    font-size: 13px;
    font-weight: 600;
}

.base64-textarea {
    background: #383838;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 120px;
}

.base64-textarea:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 5px rgba(74, 144, 217, 0.3);
}

.base64-textarea::placeholder {
    color: #666;
}

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

.base64-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.base64-btn i {
    font-size: 12px;
}

.base64-btn-primary {
    background: linear-gradient(180deg, #4a90d9 0%, #3a7bc8 100%);
    color: #fff;
    flex: 1;
}

.base64-btn-primary:hover {
    background: linear-gradient(180deg, #5ba0e9 0%, #4a90d9 100%);
}

.base64-btn-secondary {
    background: linear-gradient(180deg, #888 0%, #666 100%);
    color: #fff;
}

.base64-btn-secondary:hover {
    background: linear-gradient(180deg, #999 0%, #777 100%);
}

.base64-btn-copy {
    background: linear-gradient(180deg, #62c554 0%, #4ea83f 100%);
    color: #fff;
    justify-content: center;
}

.base64-btn-copy:hover {
    background: linear-gradient(180deg, #70d362 0%, #62c554 100%);
}

/* Restore Default Cursor - Override Previous Custom Cursor CSS */
*,
a,
button,
input,
select,
textarea,
.app-icon,
.window,
.desktop-icon,
.close-btn,
.minimize-btn,
.maximize-btn {
    cursor: auto !important;
}

a,
button,
.app-icon,
.desktop-icon,
.close-btn,
.minimize-btn,
.maximize-btn {
    cursor: pointer !important;
}

input,
select,
textarea {
    cursor: text !important;
}

.custom-cursor {
    display: none !important;
}

/* To-Do Application Styles */
.todo-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.todo-header {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.todo-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.todo-header i {
    margin-right: 10px;
    color: #ffd700;
}

.todo-add-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.todo-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.todo-input:focus {
    outline: none;
    background: #fff;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.todo-input::placeholder {
    color: #999;
}

.todo-add-btn {
    background: linear-gradient(180deg, #ffd700 0%, #ffb700 100%);
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.todo-add-btn:hover {
    background: linear-gradient(180deg, #ffe44d 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.todo-add-btn i {
    margin-right: 5px;
}

.todo-list {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.todo-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.todo-item.completed {
    opacity: 0.6;
    border-left-color: #62c554;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #999;
}

.todo-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.todo-text {
    flex: 1;
    color: #333;
    font-size: 14px;
    word-break: break-word;
}

.todo-delete-btn {
    background: linear-gradient(180deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.todo-delete-btn:hover {
    background: linear-gradient(180deg, #ff8787 0%, #ff6b6b 100%);
}

.todo-loading,
.todo-empty,
.todo-error {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 14px;
}

.todo-empty i {
    font-size: 48px;
    color: #62c554;
    display: block;
    margin-bottom: 15px;
}

.todo-error {
    color: #e01b24;
}

.todo-stats {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    text-align: center;
    color: #667eea;
    font-weight: 600;
    font-size: 13px;
}

.todo-stats i {
    margin-right: 8px;
}

/* Colorful To-Do Icon in Activities */
.app-icon[onclick*="openTodoWindow"] i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Colorful To-Do Icon - Updated Selector */
.app-icon:has(span:contains("To-Do")) i,
.app-icon span:contains("To-Do")~i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Alternative approach using nth-child if above doesn't work */
#app-grid .app-icon:nth-of-type(14) i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Remove incorrect gradient selectors and add correct one for To-Do */
.app-icon[data-app="todo"] i {
    background: linear-gradient(135deg, #FF6B9D 0%, #C06C84 50%, #6C5B7B 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 2px rgba(255, 107, 157, 0.5));
}

/* Override the previous nth-child selector that was hitting the wrong icon */
#app-grid .app-icon:nth-of-type(14) i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

/* Travel Planner Modal - CRITICAL FIX */
.tp-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    animation: fadeIn 0.3s;
}

.tp-modal-content {
    background: #2d2d2d;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
}

.tp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #17a2b8;
}

.tp-modal-header h3 {
    margin: 0;
    color: #17a2b8;
}

.tp-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.tp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
}

/* Summary View Styles */
.summary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.summary-card {
    background: #333;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
}

.summary-card h3 {
    margin-bottom: 20px;
    color: #17a2b8;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.summary-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 4px;
    background: #2a2a2a;
}

.summary-header {
    font-weight: bold;
    color: #aaa;
    background: transparent;
}

.summary-total {
    background: #3a3a3a;
    border: 1px solid #17a2b8;
    margin-top: 10px;
    font-size: 1.1em;
}

.summary-perperson {
    background: #2a2a2a;
    border: 1px dashed #666;
    margin-top: 5px;
    color: #aeaeae;
}

.exchange-rate-note {
    margin-top: 20px;
    font-size: 0.85em;
    color: #666;
    text-align: right;
}

.timeline-passengers {
    margin-left: 10px;
    color: #aaa;
    cursor: help;
    font-size: 0.9em;
}

.timeline-passengers:hover {
    color: #fff;
}

.tp-form {
    padding: 20px;
}

.tp-form-group {
    margin-bottom: 15px;
}

.tp-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #17a2b8;
    font-size: 13px;
    font-weight: 600;
}

.tp-form-group input,
.tp-form-group select,
.tp-form-group textarea {
    width: 100%;
    background: #383838;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.tp-form-group input:focus,
.tp-form-group select:focus,
.tp-form-group textarea:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 5px rgba(23, 162, 184, 0.3);
}

.tp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Improved Travel Planner Tabs */
.tp-tabs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #252525;
    border-bottom: 1px solid #444;
    overflow-x: auto;
}

.tp-tab-btn {
    background: #383838;
    border: none;
    color: #aaa;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.tp-tab-btn:hover {
    background: #444;
    color: #fff;
}

.tp-tab-btn.active {
    background: #17a2b8;
    color: #fff;
    box-shadow: 0 2px 5px rgba(23, 162, 184, 0.4);
}

/* Improved Tab Header with Add Button */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.tab-header h3 {
    margin: 0;
    color: #17a2b8;
    font-size: 18px;
}

/* Empty State Styling */
.tp-empty-text {
    text-align: center;
    color: #666;
    padding: 40px;
    background: #252525;
    border-radius: 8px;
    border: 1px dashed #444;
    margin: 20px 0;
}

/* Add Button in Tab */
.tp-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* List Item Styling (Travellers, Flights, Hotels, Costs) */
.traveller-item,
.flight-item,
.hotel-item,
.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #444;
    transition: transform 0.2s, box-shadow 0.2s;
}

.traveller-item:hover,
.flight-item:hover,
.hotel-item:hover,
.cost-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: #17a2b8;
}

.traveller-info,
.flight-info,
.hotel-info,
.cost-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.traveller-info i,
.flight-info i,
.hotel-info i,
.cost-info i {
    font-size: 24px;
    color: #17a2b8;
    width: 30px;
    text-align: center;
}

.traveller-info div,
.flight-info div,
.hotel-info div,
.cost-info div {
    display: flex;
    flex-direction: column;
}

/* Tab Pane Visibility Logic */
.tab-pane {
    display: none;
    animation: fadeIn 0.3s;
}

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

.traveller-info strong,
.flight-info strong,
.hotel-info strong,
.cost-info strong {
    color: #fff;
    font-size: 16px;
    margin-bottom: 2px;
}

.traveller-meta,
.flight-meta,
.hotel-meta,
.cost-meta {
    color: #aaa;
    font-size: 13px;
}

.tp-btn-icon {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.tp-btn-icon:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Inline Form Styling */
.inline-form {
    display: flex;
    gap: 10px;
    background: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #17a2b8;
}

.inline-form input,
.inline-form select {
    background: #383838;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    flex: 1;
}

.inline-form button {
    white-space: nowrap;
}

/* Premium Trip Card Styling */
.trip-card {
    background: linear-gradient(145deg, #2d2d2d, #252525);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    border-color: #17a2b8;
}

.trip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #17a2b8, #20c997);
}

.trip-card-header {
    padding: 20px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.trip-card-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trip-card-header h3 i {
    color: #17a2b8;
}

.trip-card-body {
    padding: 10px 20px 20px;
    color: #aaa;
}

.trip-card-body p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.trip-card-body i {
    width: 20px;
    text-align: center;
    color: #666;
}

/* Main Action Button Styling */
#new-trip-btn {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(23, 162, 184, 0.3);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#new-trip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(23, 162, 184, 0.5);
}

/* Empty State Icon */
.tp-empty i {
    font-size: 48px;
    color: #444;
    margin-bottom: 15px;
}

/* Improved Overview Page */
.overview-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.overview-card {
    background: #333;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #444;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.overview-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #17a2b8;
    font-size: 1.2em;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    color: #888;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #fff;
    font-size: 1.1em;
    font-weight: 500;
}

/* Enhanced Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: #383838;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #444;
}

.timeline-item.hotel.stay {
    border-left-color: #8e44ad;
    opacity: 0.8;
}

.timeline-item.hotel.checkout {
    border-left-color: #9b59b6;
    border-left-style: dashed;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #17a2b8;
}

.stat-card i {
    font-size: 2em;
    color: #17a2b8;
    opacity: 0.8;
}

.stat-value {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.85em;
    color: #aaa;
}

/* Timeline View Styles */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.timeline-day {
    display: flex;
    gap: 20px;
    border-left: 2px solid #444;
    padding-left: 20px;
    position: relative;
    padding-bottom: 20px;
}

.timeline-day:last-child {
    border-left-color: transparent;
}

.timeline-day::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #17a2b8;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5);
}

.timeline-date {
    min-width: 120px;
    font-weight: bold;
    color: #17a2b8;
    font-size: 1.1em;
    padding-top: -5px;
}

.timeline-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-empty {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.timeline-item {
    background: #333;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    display: flex;
    gap: 15px;
    transition: transform 0.2s;
}

.timeline-item:hover {
    transform: translateX(5px);
    border-color: #555;
}

.timeline-item .time {
    font-weight: bold;
    color: #aaa;
    min-width: 50px;
    display: flex;
    align-items: center;
}

.timeline-item .details {
    flex-grow: 1;
}

.timeline-item .title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item .title i {
    color: #17a2b8;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.timeline-item .desc {
    color: #ccc;
    font-size: 0.9em;
}

/* Specific Styles for Event Types */
.timeline-item.flight {
    border-left: 3px solid #f39c12;
}

.timeline-item.hotel {
    border-left: 3px solid #9b59b6;
}

.timeline-item.transport {
    border-left: 3px solid #3498db;
}

.timeline-item.activity {
    border-left: 3px solid #2ecc71;
}

.timeline-item.note {
    border-left: 3px solid #95a5a6;
}

.timeline-item .actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.timeline-item .actions button:hover {
    color: #e74c3c;
}

/* Checkbox List */
.tp-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px 0;
}

.tp-checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #444;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.tp-checkbox-item:hover {
    background: #555;
}

.flight-passengers {
    margin-top: 10px;
    font-size: 0.9em;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #444;
}

.tp-currency-select {
    width: 80px !important;
    background: #444;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px;
}

/* ========== APP STORE STYLES ========== */

.app-store-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.app-store-header {
    padding: 15px 20px 0;
}

.app-store-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-store-title i {
    font-size: 24px;
    color: #4a90d9;
}

.app-store-title h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.app-store-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 20px;
    padding: 8px 14px;
    background: #444;
    border-radius: 8px;
    border: 1px solid #555;
}

.app-store-search i {
    color: #888;
    font-size: 14px;
}

.app-store-search input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.app-store-search input::placeholder {
    color: #888;
}

.app-store-filters {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.app-store-filter-btn {
    padding: 6px 16px;
    border: 1px solid #555;
    background: transparent;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.app-store-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.app-store-filter-btn.active {
    background: #fff;
    color: #222;
    border-color: #fff;
    font-weight: 600;
}

.app-store-admin-bar {
    padding: 0 20px 10px;
    display: flex;
    gap: 10px;
}

.app-store-add-btn {
    font-size: 13px !important;
    padding: 6px 14px !important;
}

.app-store-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.app-store-section {
    margin-bottom: 20px;
}

.app-store-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #eee;
}

.app-store-count {
    color: #888;
    font-weight: 400;
    font-size: 14px;
}

.app-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.app-store-card {
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-store-card:hover {
    background: #424242;
    border-color: #5a5a5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-card-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card-info {
    flex: 1;
    min-width: 0;
}

.app-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.app-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.app-card-badge-android {
    background: rgba(61, 220, 132, 0.15);
    color: #3ddc84;
    border: 1px solid rgba(61, 220, 132, 0.3);
}

.app-card-badge-macos {
    background: rgba(150, 150, 160, 0.15);
    color: #b0b0b8;
    border: 1px solid rgba(150, 150, 160, 0.3);
}

.app-card-developer {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.app-card-desc {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #999;
    padding-top: 8px;
    border-top: 1px solid #4a4a4a;
}

.app-card-rating i {
    color: #f5c518;
    margin-right: 3px;
}

.app-card-downloads i {
    margin-right: 3px;
}

/* ========== APP DETAIL WINDOW ========== */

.app-detail-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.app-detail-header {
    display: flex;
    gap: 16px;
    padding: 20px;
    align-items: flex-start;
    border-bottom: 1px solid #444;
}

.app-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-detail-header-info {
    flex: 1;
    min-width: 0;
}

.app-detail-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 2px;
}

.app-detail-developer {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.app-detail-header-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 13px;
    color: #aaa;
    flex-wrap: wrap;
}

.app-detail-admin-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.app-detail-edit-btn,
.app-detail-delete-btn {
    background: #444;
    border: 1px solid #555;
    color: #ccc;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.app-detail-edit-btn:hover {
    background: #3584e4;
    color: #fff;
    border-color: #3584e4;
}

.app-detail-delete-btn:hover {
    background: #e01b24;
    color: #fff;
    border-color: #e01b24;
}

/* Screenshots */
.app-detail-screenshots {
    padding: 16px 20px;
    border-bottom: 1px solid #444;
}

.app-detail-screenshots h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.app-screenshots-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.app-screenshots-scroll::-webkit-scrollbar {
    height: 6px;
}

.app-screenshots-scroll::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.app-screenshot-item {
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.app-screenshot-item img {
    height: 200px;
    width: auto;
    max-width: 340px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.app-screenshot-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(224, 27, 36, 0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s;
}

.app-screenshot-item:hover .app-screenshot-delete {
    opacity: 1;
}

.app-screenshot-upload {
    margin-top: 10px;
}

.app-screenshot-add-btn {
    font-size: 12px !important;
    padding: 5px 12px !important;
}

/* Tabs */
.app-detail-tabs {
    display: flex;
    border-bottom: 1px solid #444;
    padding: 0 20px;
}

.app-detail-tab {
    padding: 10px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.app-detail-tab:hover {
    color: #ccc;
}

.app-detail-tab.active {
    color: #fff;
    border-bottom-color: #4a90d9;
    font-weight: 600;
}

.app-detail-tab-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Overview Tab */
.app-tab-overview h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 16px;
}

.app-tab-overview h3:first-child {
    margin-top: 0;
}

.app-overview-desc {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.app-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #ccc;
}

.app-feature-item i {
    color: #4caf50;
    font-size: 13px;
    flex-shrink: 0;
}

/* Details Tab */
.app-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.app-detail-item {
    padding: 12px;
    background: #3a3a3a;
    border-radius: 8px;
}

.app-detail-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 600;
}

.app-detail-label i {
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

.app-detail-value {
    font-size: 15px;
    color: #eee;
    font-weight: 500;
}

.app-requirements-list {
    padding: 0;
}

.app-requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: #ccc;
}

.app-req-dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Versions Tab */
.app-version-entry {
    border-left: 3px solid #4a90d9;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #3a3a3a;
    border-radius: 0 8px 8px 0;
}

.app-version-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.app-version-header strong {
    font-size: 15px;
    color: #eee;
}

.app-version-date {
    font-size: 13px;
    color: #888;
}

.app-version-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.app-version-edit,
.app-version-delete {
    background: #444;
    border: 1px solid #555;
    color: #aaa;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.app-version-edit:hover {
    background: #3584e4;
    color: #fff;
}

.app-version-delete:hover {
    background: #e01b24;
    color: #fff;
}

.app-version-changes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-version-changes li {
    padding: 3px 0;
    font-size: 13px;
    color: #bbb;
    position: relative;
    padding-left: 16px;
}

.app-version-changes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: #888;
    border-radius: 50%;
}

/* Links Tab */
.app-link-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #3a3a3a;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #4a4a4a;
}

.app-link-title {
    font-size: 14px;
    color: #eee;
}

.app-link-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.app-link-edit,
.app-link-delete {
    background: #444;
    border: 1px solid #555;
    color: #aaa;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.app-link-edit:hover {
    background: #3584e4;
    color: #fff;
}

.app-link-delete:hover {
    background: #e01b24;
    color: #fff;
}

.app-link-open {
    color: #888;
    font-size: 14px;
    padding: 4px 8px;
    transition: color 0.2s;
    text-decoration: none;
}

.app-link-open:hover {
    color: #4a90d9;
}

/* ========== MOBILE MODE STYLES ========== */

/* Hide mobile mode by default (desktop view) */
#mobile-mode {
    display: none;
}

/* Show desktop mode by default */
#desktop-mode {
    display: block;
}

/* Mobile mode becomes visible via JS when .hidden is removed */
#mobile-mode:not(.hidden) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background: #1a1a1a;
    padding-top: env(safe-area-inset-top, 0px); /* iOS notch/Dynamic Island */
}

#desktop-mode.hidden {
    display: none !important;
}

/* Mobile Header */
#mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #444;
    min-height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0; /* Prevent header from shrinking */
}

#mobile-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    flex: 1;
    text-align: center;
}

#mobile-back-btn,
#mobile-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

#mobile-back-btn:hover,
#mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#mobile-back-btn.hidden {
    visibility: hidden;
}

/* Mobile Content Area */
#mobile-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 100px; /* Extra space for bottom nav */
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); /* iOS safe area */
    -webkit-overflow-scrolling: touch;
}

/* Mobile Bottom Navigation */
#mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #2d2d2d;
    border-top: 1px solid #444;
    padding: 8px 0 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); /* iOS safe area */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: #888;
    text-decoration: none;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
    border: none;
    background: none;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item.active {
    color: #4a90d9;
}

.mobile-nav-item:hover {
    color: #fff;
}

/* Mobile App Grid (Home Screen) */
.mobile-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.mobile-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s;
    text-align: center;
}

.mobile-app-icon:active {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-app-icon i {
    font-size: 32px;
    color: #4a90d9;
}

.mobile-app-icon span {
    font-size: 12px;
    color: #ccc;
    word-break: break-word;
}

/* Mobile About Me */
.mobile-about {
    max-width: 100%;
}

/* Mobile About Tabs */
.mobile-about-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-about-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-about-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 20px;
    color: #aaa;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mobile-about-tab i {
    font-size: 12px;
}

.mobile-about-tab.active {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}

.mobile-about-tab:active {
    transform: scale(0.95);
}

/* Mobile About Content */
.mobile-about-content {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
}

.mobile-about-content h2,
.mobile-about-content h3,
.mobile-about-content h4 {
    color: #4a90d9;
    margin-top: 16px;
    margin-bottom: 8px;
}

.mobile-about-content h2:first-child,
.mobile-about-content h3:first-child,
.mobile-about-content h4:first-child {
    margin-top: 0;
}

.mobile-about-content p {
    margin: 0 0 12px;
}

.mobile-about-content ul,
.mobile-about-content ol {
    padding-left: 20px;
    margin: 0 0 12px;
}

.mobile-about-content li {
    margin-bottom: 4px;
}

.mobile-about-content a {
    color: #4a90d9;
}

.mobile-about-header {
    text-align: center;
    margin-bottom: 24px;
}

.mobile-about-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #4a90d9;
}

.mobile-about-header h1 {
    font-size: 24px;
    margin: 0 0 8px;
    color: #fff;
}

.mobile-about-header p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.mobile-about-section {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.mobile-about-section h3 {
    font-size: 14px;
    color: #888;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-about-section p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.mobile-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #3a3a3a;
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.mobile-social-link:active {
    background: #4a4a4a;
}

/* Mobile App Store */
.mobile-appstore {
    padding-bottom: 20px;
}

.mobile-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 20px 0 12px;
}

.mobile-section-title:first-child {
    margin-top: 0;
}

.mobile-app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-store-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #2d2d2d;
    border-radius: 10px;
    margin-bottom: 16px;
}

.mobile-store-search i {
    color: #666;
    font-size: 16px;
}

.mobile-store-search input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.mobile-store-search input::placeholder {
    color: #666;
}

.mobile-store-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.mobile-store-filter {
    padding: 8px 16px;
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.mobile-store-filter.active {
    background: #fff;
    color: #222;
    border-color: #fff;
}

.mobile-store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-app-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #2d2d2d;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-app-card:active {
    background: #3a3a3a;
}

.mobile-app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #3a3a3a;
}

.mobile-app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-app-card-info {
    flex: 1;
    min-width: 0;
}

.mobile-app-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.mobile-app-card-developer {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.mobile-app-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.mobile-app-card-meta i {
    margin-right: 4px;
}

.mobile-app-card-meta .fa-star {
    color: #f5c518;
}

/* Mobile App Detail */
.mobile-app-detail {
    padding-bottom: 20px;
}

.mobile-app-detail-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.mobile-app-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #2d2d2d;
}

.mobile-app-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-app-detail-info h1 {
    font-size: 20px;
    margin: 0 0 4px;
    color: #fff;
}

.mobile-app-detail-info .developer {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.mobile-app-detail-info .meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.mobile-app-detail-screenshots {
    margin-bottom: 20px;
}

.mobile-app-detail-screenshots h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #fff;
}

.mobile-screenshots-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.mobile-screenshots-scroll img {
    height: 180px;
    width: auto;
    border-radius: 10px;
    flex-shrink: 0;
}

.mobile-app-detail-section,
.mobile-app-section {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.mobile-app-detail-section h3,
.mobile-app-section h3 {
    font-size: 14px;
    color: #888;
    margin: 0 0 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-app-detail-section p,
.mobile-app-section p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Mobile App Detail - Header */
.mobile-app-detail-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.mobile-app-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-app-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-app-detail-icon i {
    font-size: 32px;
    color: #888;
}

.mobile-app-detail-info h2 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 4px;
}

.mobile-app-detail-dev {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.mobile-app-detail-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #aaa;
}

.mobile-app-detail-meta i {
    margin-right: 4px;
}

.mobile-app-detail-meta .fa-star {
    color: #f5c518;
}

/* Mobile App Badge */
.mobile-app-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.mobile-app-badge-android {
    background: rgba(61, 220, 132, 0.15);
    color: #3ddc84;
    border: 1px solid rgba(61, 220, 132, 0.3);
}

.mobile-app-badge-macos {
    background: rgba(150, 150, 160, 0.15);
    color: #b0b0b8;
    border: 1px solid rgba(150, 150, 160, 0.3);
}

/* Mobile App Screenshots */
.mobile-app-screenshots {
    margin-bottom: 20px;
}

.mobile-app-screenshots h3 {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Mobile App Description */
.mobile-app-desc {
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
}

/* Mobile Feature List */
.mobile-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: #ccc;
    font-size: 14px;
    border-bottom: 1px solid #3a3a3a;
}

.mobile-feature-list li:last-child {
    border-bottom: none;
}

.mobile-feature-list li i {
    color: #4caf50;
    font-size: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Mobile App Details Grid */
.mobile-app-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mobile-app-details-grid > div {
    background: #3a3a3a;
    border-radius: 8px;
    padding: 12px;
}

.mobile-app-details-grid strong {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Mobile Categories/Blog */
.mobile-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-category-card {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-category-card:active {
    background: #3a3a3a;
}

.mobile-category-card i {
    font-size: 28px;
    color: #4a90d9;
    margin-bottom: 10px;
}

.mobile-category-card h3 {
    font-size: 14px;
    color: #fff;
    margin: 0 0 4px;
}

.mobile-category-card span {
    font-size: 12px;
    color: #666;
}

/* Mobile Posts List */
.mobile-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-post-card {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-post-card:active {
    background: #3a3a3a;
}

.mobile-post-card h3 {
    font-size: 16px;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.4;
}

.mobile-post-card p {
    font-size: 14px;
    color: #888;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

.mobile-post-meta i {
    margin-right: 4px;
}

/* Mobile Post Detail */
.mobile-post-detail {
    padding-bottom: 20px;
}

.mobile-post-detail h1 {
    font-size: 22px;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.mobile-post-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333;
}

.mobile-post-content {
    color: #ccc;
    font-size: 15px;
    line-height: 1.7;
}

.mobile-post-content p {
    margin: 0 0 16px;
}

.mobile-post-content pre {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.mobile-post-content code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
}

/* Mobile Calculator */
.mobile-calculator {
    max-width: 320px;
    margin: 0 auto;
    background: #2d2d2d;
    border-radius: 16px;
    padding: 20px;
}

.mobile-calc-display {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: right;
}

.mobile-calc-display input {
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    text-align: right;
    width: 100%;
    outline: none;
}

.mobile-calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mobile-calc-btn {
    padding: 18px;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-calc-btn.number {
    background: #3a3a3a;
    color: #fff;
}

.mobile-calc-btn.operator {
    background: #4a90d9;
    color: #fff;
}

.mobile-calc-btn.function {
    background: #555;
    color: #fff;
}

.mobile-calc-btn:active {
    opacity: 0.8;
}

/* Mobile Weather */
.mobile-weather {
    text-align: center;
}

.mobile-weather-main {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    border-radius: 16px;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.mobile-weather-icon {
    font-size: 64px;
    color: #fff;
    margin-bottom: 10px;
}

.mobile-weather-temp {
    font-size: 48px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 8px;
}

.mobile-weather-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.mobile-weather-location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-weather-detail {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.mobile-weather-detail i {
    font-size: 24px;
    color: #4a90d9;
    margin-bottom: 8px;
}

.mobile-weather-detail-value {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

.mobile-weather-detail-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    background: #2d2d2d;
    border-radius: 16px;
    padding: 20px;
    width: 280px;
    max-width: 90%;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #444;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:active {
    background: #555;
}

.mobile-menu-items {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.mobile-menu-item i {
    width: 24px;
    text-align: center;
    font-size: 18px;
    color: #888;
}

.mobile-menu-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-divider {
    height: 1px;
    background: #444;
    margin: 10px 0;
}

/* Mobile Loading State */
.mobile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #888;
}

.mobile-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

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

/* Mobile Empty State */
.mobile-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.mobile-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.mobile-empty p {
    font-size: 15px;
    margin: 0;
}

/* Hide taskbar and other desktop elements in mobile */
#mobile-mode.active ~ #taskbar,
#mobile-mode.active ~ #activities-overlay,
#mobile-mode.active ~ #search-overlay {
    display: none !important;
}

/* Mobile Home Screen */
.mobile-home {
    padding: 0;
}

.mobile-home-header {
    text-align: center;
    padding: 20px 0 30px;
}

.mobile-home-header h1 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 4px;
}

.mobile-home-header p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Mobile App Icon Circle */
.mobile-app-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.mobile-app-icon-circle i {
    font-size: 24px;
    color: #fff;
}

/* Mobile Weather Search */
.mobile-weather-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-weather-search input {
    flex: 1;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.mobile-weather-search input:focus {
    border-color: #4a90d9;
}

.mobile-weather-search button {
    background: #4a90d9;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    cursor: pointer;
}

.mobile-weather-card {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
}

.mobile-weather-card h2 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 10px;
}

.mobile-weather-card .mobile-weather-temp {
    font-size: 56px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 10px;
}

.mobile-weather-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.mobile-weather-info i {
    margin-right: 6px;
}

/* Mobile Calculator - Extended Styles */
.mobile-calc-expr {
    font-size: 16px;
    color: #888;
    min-height: 20px;
    margin-bottom: 8px;
}

.mobile-calc-result {
    font-size: 42px;
    color: #fff;
    font-weight: 300;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-calc-buttons button {
    background: #3a3a3a;
    color: #fff;
    font-size: 22px;
    padding: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.mobile-calc-buttons button:active {
    background: #4a4a4a;
}

.mobile-calc-fn {
    background: #555 !important;
}

.mobile-calc-op {
    background: #4a90d9 !important;
}

.mobile-calc-eq {
    background: #27ae60 !important;
}

.mobile-calc-zero {
    grid-column: span 2;
}

/* Mobile Map Container */
.mobile-map-container {
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

/* Mobile Error State */
.mobile-error {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
}

.mobile-error i {
    font-size: 32px;
    margin-bottom: 12px;
}

/* Mobile Placeholder */
.mobile-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.mobile-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.mobile-placeholder p {
    font-size: 16px;
    margin: 0;
}

/* Mobile More Menu */
.mobile-more-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-more-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #2d2d2d;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-more-item:active {
    background: #3a3a3a;
}

.mobile-more-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-more-icon i {
    font-size: 18px;
    color: #fff;
}

.mobile-more-item span {
    flex: 1;
    font-size: 15px;
    color: #fff;
}

.mobile-more-item > i.fa-chevron-right {
    color: #555;
    font-size: 14px;
}

/* Mobile Post Item (in category view) */
.mobile-post-item {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-post-item:active {
    background: #3a3a3a;
}

.mobile-post-title {
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.mobile-post-date {
    font-size: 12px;
    color: #666;
}

/* Mobile Post View */
.mobile-post-view {
    padding-bottom: 20px;
}

.mobile-post-view h1 {
    font-size: 22px;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.3;
}

/* Mobile Menu Content (Overlay Menu) */
.mobile-menu-content {
    background: #2d2d2d;
    width: 280px;
    height: 100%;
    padding: 20px;
    margin-left: auto;
}

.mobile-menu-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.mobile-menu-close button,
button.mobile-menu-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========== MOBILE UTILITY APPS ========== */

/* Mobile Tabs (shared) */
.mobile-tabs {
    display: flex;
    gap: 4px;
    background: #2d2d2d;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.mobile-tab {
    flex: 1;
    padding: 10px 12px;
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-tab.active {
    background: #4a90d9;
    color: #fff;
}

.mobile-tab-content.hidden {
    display: none;
}

/* Mobile Clock & Timer */
.mobile-clock-timer {
    padding-bottom: 20px;
}

.mobile-clock-display {
    text-align: center;
    padding: 30px 0;
}

.mobile-clock-time {
    font-size: 48px;
    font-weight: 300;
    color: #fff;
    font-family: 'SF Mono', monospace;
}

.mobile-clock-date {
    font-size: 16px;
    color: #888;
    margin-top: 8px;
}

.mobile-world-clocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-world-clock-item {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-wc-city {
    color: #888;
    font-size: 13px;
}

.mobile-wc-time {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'SF Mono', monospace;
}

/* Mobile Timer */
.mobile-timer-display {
    font-size: 56px;
    font-weight: 200;
    color: #fff;
    text-align: center;
    font-family: 'SF Mono', monospace;
    padding: 30px 0;
}

.mobile-timer-inputs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.mobile-timer-input {
    text-align: center;
}

.mobile-timer-input input {
    width: 70px;
    height: 70px;
    background: #2d2d2d;
    border: 2px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 28px;
    text-align: center;
    outline: none;
}

.mobile-timer-input input:focus {
    border-color: #4a90d9;
}

.mobile-timer-input label {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 12px;
}

.mobile-timer-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mobile-timer-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-timer-start {
    background: #4a90d9;
    color: #fff;
}

.mobile-timer-reset {
    background: #3a3a3a;
    color: #ccc;
}

/* Mobile Stopwatch */
.mobile-stopwatch-display {
    font-size: 48px;
    font-weight: 200;
    color: #fff;
    text-align: center;
    font-family: 'SF Mono', monospace;
    padding: 40px 0;
}

.mobile-stopwatch-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.mobile-sw-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sw-start {
    background: #4a90d9;
    color: #fff;
}

.mobile-sw-lap {
    background: #f39c12;
    color: #fff;
}

.mobile-sw-reset {
    background: #3a3a3a;
    color: #ccc;
}

.mobile-sw-laps {
    max-height: 200px;
    overflow-y: auto;
}

.mobile-sw-lap-item {
    background: #2d2d2d;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
    font-family: 'SF Mono', monospace;
}

/* Mobile Password Generator */
.mobile-password-gen {
    padding-bottom: 20px;
}

.mobile-pw-display {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-pw-display input {
    flex: 1;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 16px;
    font-family: 'SF Mono', monospace;
    outline: none;
}

.mobile-pw-refresh {
    width: 50px;
    background: #3a3a3a;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

.mobile-pw-strength {
    height: 6px;
    background: #2d2d2d;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mobile-pw-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 3px;
}

.mobile-pw-strength-bar.weak {
    background: #e74c3c;
}

.mobile-pw-strength-bar.medium {
    background: #f39c12;
}

.mobile-pw-strength-bar.strong {
    background: #27ae60;
}

.mobile-pw-strength-label {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.mobile-pw-copy {
    width: 100%;
    padding: 14px;
    background: #4a90d9;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-pw-options {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
}

.mobile-pw-length {
    margin-bottom: 16px;
}

.mobile-pw-length label {
    display: block;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
}

.mobile-pw-length input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #444;
    border-radius: 3px;
    outline: none;
}

.mobile-pw-length input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4a90d9;
    border-radius: 50%;
    cursor: pointer;
}

.mobile-pw-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-pw-check {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
}

.mobile-pw-check input {
    width: 20px;
    height: 20px;
    accent-color: #4a90d9;
}

/* Mobile Base64 */
.mobile-base64 {
    padding-bottom: 20px;
}

.mobile-b64-input,
.mobile-b64-output {
    width: 100%;
    min-height: 100px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 14px;
    color: #fff;
    font-size: 14px;
    font-family: 'SF Mono', monospace;
    resize: vertical;
    outline: none;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.mobile-b64-input:focus {
    border-color: #4a90d9;
}

.mobile-b64-btn {
    width: 100%;
    padding: 14px;
    background: #4a90d9;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 12px;
}

.mobile-b64-copy {
    width: 100%;
    padding: 12px;
    background: #3a3a3a;
    border: none;
    border-radius: 10px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
}

/* Mobile Percentage Calculator */
.mobile-percent-calc {
    padding-bottom: 20px;
}

.mobile-percent-section {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.mobile-percent-section h3 {
    font-size: 14px;
    color: #4a90d9;
    margin: 0 0 14px;
}

.mobile-percent-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-percent-row input {
    width: 70px;
    padding: 10px;
    background: #3a3a3a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    outline: none;
}

.mobile-percent-row input:focus {
    border-color: #4a90d9;
}

.mobile-percent-row span {
    color: #888;
    font-size: 14px;
}

.mobile-percent-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.mobile-percent-btn {
    flex: 1;
    padding: 12px;
    background: #4a90d9;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.mobile-percent-btn.secondary {
    background: #3a3a3a;
    color: #ccc;
}

.mobile-percent-btn-sm {
    padding: 10px 16px;
    background: #4a90d9;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.mobile-percent-result {
    margin-top: 12px;
    padding: 12px;
    background: #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    font-weight: 500;
}

.mobile-percent-result:empty {
    display: none;
}

/* Mobile Games */
.mobile-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 16px;
}

.mobile-game-score {
    font-size: 18px;
    font-weight: 600;
    color: #27ae60;
    background: #2d2d2d;
    padding: 10px 20px;
    border-radius: 8px;
}

.mobile-game-container canvas {
    border: 2px solid #444;
    border-radius: 8px;
    max-width: 100%;
    touch-action: none;
}

.mobile-game-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.mobile-game-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3498db;
    border: none;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
}

.mobile-game-btn:active {
    transform: scale(0.95);
    background: #2980b9;
}

.mobile-game-hint {
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* D-Pad for Snake */
.mobile-dpad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-dpad-middle {
    display: flex;
    gap: 4px;
}

.mobile-dpad-btn {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #3498db;
    border: none;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
}

.mobile-dpad-btn:active {
    transform: scale(0.95);
    background: #2980b9;
}

.mobile-dpad-center {
    background: #e74c3c;
}

.mobile-dpad-center:active {
    background: #c0392b;
}

/* Tetris specific */
.mobile-tetris-controls {
    gap: 16px;
}

.mobile-tetris-controls .mobile-game-btn {
    width: 64px;
    height: 64px;
}

#m-tetris-rotate {
    background: #9b59b6;
}

#m-tetris-rotate:active {
    background: #8e44ad;
}

#m-tetris-down {
    background: #e74c3c;
}

#m-tetris-down:active {
    background: #c0392b;
}

/* Mobile Admin */
.mobile-admin {
    padding: 16px;
}

.mobile-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mobile-admin-card {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.mobile-admin-card:active {
    transform: scale(0.98);
    background: #3a3a3a;
}

.mobile-admin-card i {
    font-size: 32px;
    color: #4a90d9;
}

.mobile-admin-card span {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

/* Admin List View */
.mobile-admin-list {
    padding: 16px;
}

.mobile-admin-add-btn {
    width: 100%;
    padding: 14px;
    background: #27ae60;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-admin-add-btn:active {
    background: #219a52;
}

.mobile-admin-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-admin-item {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-admin-item-info {
    flex: 1;
    min-width: 0;
}

.mobile-admin-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-admin-item-title i {
    margin-right: 8px;
    color: #4a90d9;
}

.mobile-admin-item-meta {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.mobile-admin-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-admin-edit,
.mobile-admin-delete {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.mobile-admin-edit {
    background: #3498db;
    color: #fff;
}

.mobile-admin-edit:active {
    background: #2980b9;
}

.mobile-admin-delete {
    background: #e74c3c;
    color: #fff;
}

.mobile-admin-delete:active {
    background: #c0392b;
}

/* Admin Form */
.mobile-admin-form {
    padding: 16px;
}

.mobile-form-group {
    margin-bottom: 16px;
}

.mobile-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 6px;
}

.mobile-form-input {
    width: 100%;
    padding: 12px 14px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

.mobile-form-input:focus {
    outline: none;
    border-color: #4a90d9;
}

.mobile-form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: 'SF Mono', 'Monaco', monospace;
    resize: vertical;
    box-sizing: border-box;
}

.mobile-form-textarea:focus {
    outline: none;
    border-color: #4a90d9;
}

.mobile-form-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.mobile-form-submit {
    width: 100%;
    padding: 14px;
    background: #4a90d9;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.mobile-form-submit:active {
    background: #3a7bc8;
}

/* Mobile Pastebin */
.mobile-pastebin {
    padding: 16px;
}

.mobile-paste-code {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.mobile-paste-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-paste-item {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
}

.mobile-paste-item:active {
    background: #3a3a3a;
}

.mobile-paste-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.mobile-paste-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.mobile-paste-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-paste-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #444;
}

.mobile-paste-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.mobile-paste-lang {
    background: #4a90d9;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.mobile-paste-views {
    color: #888;
}

.mobile-paste-actions {
    display: flex;
    gap: 8px;
}

.mobile-paste-action {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #3498db;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-paste-action:active {
    background: #2980b9;
}

.mobile-paste-code-view {
    flex: 1;
    margin: 0;
    padding: 16px;
    background: #1e1e1e;
    overflow: auto;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #d4d4d4;
    white-space: pre-wrap;
    word-break: break-all;
}

.mobile-paste-code-view code {
    font-family: inherit;
}

/* Mobile Terminal */
.mobile-terminal {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0d0d0d;
}

.mobile-terminal-output {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.mobile-term-line {
    color: #d4d4d4;
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

.mobile-term-result {
    margin-bottom: 12px;
}

.mobile-term-prompt,
.mobile-term-prompt-echo {
    color: #27ae60;
    margin-right: 8px;
}

.mobile-term-error {
    color: #e74c3c;
}

.mobile-term-dir {
    color: #5599ff;
}

.mobile-term-help {
    color: #f39c12;
    font-weight: 500;
}

.mobile-term-cmd {
    color: #4a90d9;
}

.mobile-terminal-input-area {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    gap: 8px;
}

.mobile-term-prompt {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 12px;
    color: #27ae60;
    white-space: nowrap;
}

.mobile-term-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 14px;
    outline: none;
}

.mobile-term-input::placeholder {
    color: #555;
}

.mobile-term-send {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #27ae60;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-term-send:active {
    background: #219a52;
}

/* Mobile To-Do */
.mobile-todo {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-todo-add {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.mobile-todo-input {
    flex: 1;
    padding: 12px 14px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.mobile-todo-input:focus {
    border-color: #4a90d9;
}

.mobile-todo-add-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #27ae60;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-todo-add-btn:active {
    background: #219a52;
}

.mobile-todo-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #2d2d2d;
    border-radius: 10px;
}

.mobile-todo-item.completed .mobile-todo-text {
    text-decoration: line-through;
    color: #666;
}

.mobile-todo-checkbox {
    width: 22px;
    height: 22px;
    accent-color: #27ae60;
    cursor: pointer;
}

.mobile-todo-text {
    flex: 1;
    font-size: 15px;
    color: #fff;
}

.mobile-todo-delete {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e74c3c;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-todo-delete:active {
    background: #c0392b;
}

.mobile-todo-stats {
    padding: 16px 0 0;
    text-align: center;
    font-size: 14px;
    color: #888;
    border-top: 1px solid #333;
    margin-top: 16px;
}

.mobile-todo-stats i {
    margin-right: 6px;
    color: #4a90d9;
}

/* Mobile Travel Planner */
.mobile-travel {
    padding: 16px;
}

.mobile-travel-add-btn {
    width: 100%;
    padding: 14px;
    background: #3498db;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-travel-add-btn:active {
    background: #2980b9;
}

.mobile-travel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-travel-card {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-travel-card:active {
    background: #3a3a3a;
}

.mobile-travel-card-main {
    flex: 1;
    min-width: 0;
}

.mobile-travel-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.mobile-travel-dest,
.mobile-travel-dates {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.mobile-travel-dest i,
.mobile-travel-dates i {
    width: 16px;
    margin-right: 6px;
    color: #4a90d9;
}

.mobile-travel-delete {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e74c3c;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 12px;
}

.mobile-travel-delete:active {
    background: #c0392b;
}

/* Mobile Trip Detail */
.mobile-trip-detail {
    padding: 16px;
}

.mobile-trip-header {
    margin-bottom: 20px;
}

.mobile-trip-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.mobile-trip-header h2 i {
    margin-right: 10px;
    color: #3498db;
}

.mobile-trip-info {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
}

.mobile-trip-info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #3a3a3a;
    color: #fff;
    font-size: 15px;
}

.mobile-trip-info-row:last-child {
    border-bottom: none;
}

.mobile-trip-info-row i {
    width: 24px;
    margin-right: 12px;
    color: #4a90d9;
    font-size: 16px;
}

.mobile-trip-notes {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #3a3a3a;
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

.mobile-trip-notes strong {
    color: #fff;
}

/* Mobile Winamp Player */
.mobile-winamp {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.mobile-winamp-body {
    width: 100%;
    max-width: 320px;
    background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 50%, #1a1a2a 100%);
    border-radius: 8px;
    padding: 12px;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    overflow: hidden;
    box-sizing: border-box;
}

.mobile-winamp-lcd {
    background: #0a1628;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #0d1f3c;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.mobile-winamp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.mobile-winamp-timer {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 2px;
}

.mobile-winamp-kbps {
    font-family: 'Arial', sans-serif;
    font-size: 10px;
    color: #00aa00;
    text-align: right;
    line-height: 1.2;
}

.mobile-winamp-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 30px;
    margin-bottom: 8px;
    padding: 0 2px;
}

.m-viz-bar {
    width: 12px;
    height: 2px;
    background: linear-gradient(to top, #00ff00, #ffff00, #ff0000);
    transition: height 0.05s ease;
}

.mobile-winamp-scroll {
    overflow: hidden;
    background: #0d1f3c;
    border-radius: 2px;
    padding: 4px 8px;
}

.mobile-winamp-text {
    color: #00ff00;
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    white-space: nowrap;
    animation: winampScroll 15s linear infinite;
}

@keyframes winampScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.mobile-winamp-seek {
    margin-bottom: 10px;
}

.mobile-winamp-seekbar {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #1a1a2a;
    border-radius: 4px;
    outline: none;
}

.mobile-winamp-seekbar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 16px;
    background: linear-gradient(180deg, #666 0%, #444 100%);
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.mobile-winamp-sliders {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 8px;
    overflow: hidden;
}

.mobile-winamp-slider-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mobile-winamp-slider-group span {
    font-size: 9px;
    color: #888;
    font-weight: bold;
    flex-shrink: 0;
}

.mobile-winamp-slider {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #27ae60 0%, #27ae60 80%, #333 80%);
    border-radius: 3px;
    outline: none;
}

.mobile-winamp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 14px;
    background: linear-gradient(180deg, #666 0%, #444 100%);
    border-radius: 2px;
    cursor: pointer;
}

.mobile-winamp-controls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.mobile-winamp-btn {
    width: 44px;
    height: 36px;
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border: none;
    border-radius: 4px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.mobile-winamp-btn:active {
    background: linear-gradient(180deg, #333 0%, #222 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.mobile-winamp-btn.mobile-winamp-play {
    width: 52px;
    background: linear-gradient(180deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
}

.mobile-winamp-btn.mobile-winamp-play:active {
    background: linear-gradient(180deg, #1e8449 0%, #145a32 100%);
}

.mobile-winamp-extras {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mobile-winamp-extra-btn {
    padding: 4px 12px;
    font-size: 10px;
    font-weight: bold;
    background: #2a2a3a;
    border: 1px solid #444;
    border-radius: 3px;
    color: #666;
    cursor: pointer;
}

.mobile-winamp-extra-btn.active {
    background: #1a3a1a;
    border-color: #27ae60;
    color: #27ae60;
}

.mobile-winamp-footer {
    text-align: center;
    font-size: 9px;
    color: #555;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ========== BUY ME A COFFEE BUTTON ========== */
.coffee-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2d2d2d 0%, #222 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 9998;
    text-decoration: none;
}

.coffee-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.coffee-mug {
    width: 45px;
    height: 52px;
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b35 100%);
    border-radius: 0 0 12px 12px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.coffee-mug::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 10px;
    width: 12px;
    height: 22px;
    border: 4px solid #ff9f43;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.coffee-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(180deg, #5c3d2e 0%, #3d2817 100%);
    transition: height 0.6s ease;
}

.coffee-btn:hover .coffee-liquid {
    height: 85%;
}

.coffee-face {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.coffee-eyes {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.coffee-eye {
    width: 7px;
    height: 7px;
    background: #333;
    border-radius: 50%;
    animation: coffeeSleepyEyes 3s ease-in-out infinite;
}

.coffee-btn:hover .coffee-eye {
    animation: coffeeWakeEyes 0.3s forwards;
}

@keyframes coffeeSleepyEyes {
    0%, 90%, 100% { height: 3px; border-radius: 3px; }
    95% { height: 7px; border-radius: 50%; }
}

@keyframes coffeeWakeEyes {
    to { height: 9px; width: 9px; }
}

.coffee-mouth {
    width: 12px;
    height: 6px;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 8px 8px;
    transition: all 0.3s;
}

.coffee-btn:hover .coffee-mouth {
    width: 14px;
    height: 8px;
}

.coffee-bubbles {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.coffee-bubble {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: coffeeBubble 2s ease-in-out infinite;
}

.coffee-bubble:nth-child(1) { left: -8px; animation-delay: 0s; }
.coffee-bubble:nth-child(2) { left: 0; animation-delay: 0.5s; }
.coffee-bubble:nth-child(3) { left: 8px; animation-delay: 1s; }

@keyframes coffeeBubble {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 1; transform: translateY(-12px) scale(1); }
}

.coffee-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.coffee-status {
    font-size: 10px;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.coffee-btn:hover .coffee-status {
    color: #51cf66;
}

.coffee-status i {
    animation: coffeeBlink 1s infinite;
}

@keyframes coffeeBlink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.coffee-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.coffee-subtitle {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* Mobile Coffee Button */
@media (max-width: 768px) {
    .coffee-btn {
        top: auto;
        bottom: 90px;
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        padding: 10px 14px;
        gap: 10px;
        border-radius: 16px;
    }

    .coffee-mug {
        width: 36px;
        height: 42px;
        border-radius: 0 0 10px 10px;
    }

    .coffee-mug::before {
        right: -10px;
        top: 8px;
        width: 10px;
        height: 18px;
        border-width: 3px;
    }

    .coffee-eyes {
        gap: 8px;
    }

    .coffee-eye {
        width: 5px;
        height: 5px;
    }

    .coffee-mouth {
        width: 10px;
        height: 5px;
    }

    .coffee-status {
        font-size: 9px;
    }

    .coffee-title {
        font-size: 13px;
    }

    .coffee-subtitle {
        font-size: 10px;
    }

    .coffee-bubble {
        width: 4px;
        height: 4px;
    }
}

/* Compact mobile version - icon only */
@media (max-width: 480px) {
    .coffee-btn {
        padding: 12px;
        gap: 0;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }

    .coffee-mug {
        width: 32px;
        height: 38px;
    }

    .coffee-text {
        display: none;
    }
}

/* ========== WALKIE TALKIE CONTACT BUTTON ========== */
.walkie-btn {
    position: fixed;
    top: 20px;
    right: 240px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 9998;
}

.walkie-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.walkie-btn-device {
    width: 32px;
    height: 45px;
    background: linear-gradient(180deg, #444 0%, #333 100%);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.walkie-btn-antenna {
    width: 4px;
    height: 12px;
    background: linear-gradient(180deg, #555 0%, #444 100%);
    border-radius: 2px 2px 0 0;
    position: absolute;
    top: -10px;
    left: 8px;
}

.walkie-btn-antenna::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #ff3333;
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: -1px;
    animation: walkiePulse 1.5s ease-in-out infinite;
}

@keyframes walkiePulse {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 3px #ff3333; }
    50% { opacity: 1; box-shadow: 0 0 10px #ff3333; }
}

.walkie-btn-screen {
    width: 20px;
    height: 12px;
    background: #1a3d1a;
    border: 1px solid #555;
    border-radius: 2px;
    margin: 8px auto 4px;
}

.walkie-btn-speaker {
    width: 20px;
    height: 8px;
    margin: 0 auto;
    background: repeating-linear-gradient(
        0deg,
        #555 0px,
        #555 1px,
        transparent 1px,
        transparent 3px
    );
}

.walkie-btn-text {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* Mobile Walkie Button - positioned above coffee button */
@media (max-width: 768px) {
    .walkie-btn {
        top: auto;
        bottom: 170px;
        bottom: calc(170px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        padding: 8px;
        gap: 0;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }

    .walkie-btn-device {
        width: 24px;
        height: 32px;
    }

    .walkie-btn-antenna {
        height: 8px;
        top: -6px;
        width: 3px;
        left: 6px;
    }

    .walkie-btn-antenna::after {
        width: 5px;
        height: 5px;
        top: -3px;
        left: -1px;
    }

    .walkie-btn-screen {
        width: 16px;
        height: 10px;
        margin: 5px auto 3px;
    }

    .walkie-btn-speaker {
        width: 16px;
        height: 6px;
    }

    .walkie-btn-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .walkie-btn {
        width: 46px;
        height: 46px;
        bottom: 165px;
        bottom: calc(165px + env(safe-area-inset-bottom, 0px));
    }

    .coffee-btn {
        width: 54px;
        height: 54px;
    }
}

/* ========== CONTACT MODAL ========== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal.hidden {
    display: none;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.contact-modal-content {
    position: relative;
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 24px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Walkie Device in Modal */
.walkie-device-large {
    width: 180px;
    margin: 40px auto 25px; /* Added top margin for antenna */
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 20px 20px 25px 25px;
    padding: 20px 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
}

.walkie-antenna-large {
    width: 10px;
    height: 35px;
    background: linear-gradient(180deg, #555 0%, #444 100%);
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: -30px;
    left: 25px;
}

.walkie-antenna-large::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: 1px;
    animation: walkiePulse 1.5s ease-in-out infinite;
}

.walkie-screen-large {
    background: #1a3d1a;
    border: 3px solid #444;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.walkie-status-text {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    text-align: center;
    animation: staticFlicker 0.15s infinite;
}

@keyframes staticFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.walkie-speaker-large {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 12px;
}

.walkie-speaker-large span {
    width: 100%;
    height: 3px;
    background: #555;
    border-radius: 2px;
}

.walkie-ptt-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, #ff6b35 0%, #cc4a1a 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 0 #993311;
    transition: all 0.1s;
}

.walkie-ptt-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #993311;
}

/* Form Section */
.walkie-form-section {
    text-align: center;
}

.walkie-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 5px;
}

.walkie-subtitle {
    color: #888;
    font-size: 13px;
    margin-bottom: 25px;
}

.walkie-form {
    text-align: left;
}

.walkie-input-group {
    margin-bottom: 16px;
}

.walkie-input-group label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.walkie-form input[type="text"],
.walkie-form input[type="email"],
.walkie-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.walkie-form input::placeholder,
.walkie-form textarea::placeholder {
    color: #555;
}

.walkie-form input:focus,
.walkie-form textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: #222;
}

.walkie-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Honeypot - hide from humans */
.honey-pot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.walkie-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.walkie-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 217, 0.4);
}

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

.walkie-submit-btn.sending {
    background: #666;
}

.walkie-submit-btn.success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
}

.walkie-submit-btn.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.contact-status {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

.contact-status.success {
    color: #51cf66;
}

.contact-status.error {
    color: #ff6b6b;
}

/* Mobile Contact Modal */
@media (max-width: 768px) {
    .contact-modal {
        padding: 10px;
        padding-top: 20px;
    }

    .contact-modal-content {
        padding: 20px;
        padding-top: 15px;
        max-height: 95vh;
    }

    .walkie-device-large {
        width: 150px;
        padding: 15px 12px 12px;
        margin-top: 35px; /* Space for antenna */
    }

    .walkie-antenna-large {
        height: 28px;
        top: -24px;
    }

    .walkie-screen-large {
        padding: 10px;
    }

    .walkie-status-text {
        font-size: 10px;
    }

    .walkie-ptt-btn {
        padding: 10px;
        font-size: 11px;
    }

    .walkie-title {
        font-size: 20px;
    }

    .walkie-form input[type="text"],
    .walkie-form input[type="email"],
    .walkie-form textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Media query for actual mobile devices */
@media (max-width: 768px) {
    /* Force hide desktop elements */
    #taskbar {
        display: none !important;
    }

    #activities-overlay,
    #search-overlay {
        display: none !important;
    }
}