/* 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;
}