/* Reset og basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --accent: #d4a853;
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --window-bg: rgba(30, 30, 46, 0.95);
    --taskbar-bg: rgba(20, 20, 30, 0.98);
    --hover: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, #030303 0%, #0a0a0a 100%);
    color: var(--text-primary);
}

/* Desktop */
#desktop {
    position: relative;
    height: calc(100vh - 48px);
    background: url('../images/backgrounds/bg1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Desktop ikoner */
.desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 20px;
    padding: 20px;
    align-content: start;
}

.icon {
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    user-select: none;
}

.icon:hover {
    background: var(--hover);
}

.icon-image {
    font-size: 48px;
    margin-bottom: 5px;
}

.icon-label {
    font-size: 12px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Vinduer */
.window {
    position: absolute;
    background: var(--window-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 400px;
    min-height: 300px;
}

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

.window.minimized {
    display: none;
}

.window-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    border-bottom: 1px solid var(--border);
    user-select: none;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

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

.window-control {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: var(--hover);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-control:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.window-control.close:hover {
    background: #c0392b;
}

.window-control.maximize:hover {
    background: #4caf50;
}

.window-control.minimize:hover {
    background: #ffa726;
}

.window-content {
    flex: 1;
    padding: 20px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.05);
}

/* Resize handle */
.window-resize {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--taskbar-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    z-index: 1000;
}

.taskbar-left {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.start-button {
    height: 36px;
    padding: 0 24px;
    background: linear-gradient(180deg, 
        rgba(60, 60, 80, 0.95) 0%, 
        rgba(30, 30, 45, 0.98) 50%,
        rgba(20, 20, 35, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    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);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.start-button:hover {
    background: linear-gradient(180deg, 
        rgba(80, 80, 110, 0.95) 0%, 
        rgba(45, 45, 65, 0.98) 50%,
        rgba(30, 30, 50, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 0 20px rgba(120, 140, 255, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.start-button:active {
    background: linear-gradient(180deg, 
        rgba(40, 40, 60, 0.98) 0%, 
        rgba(25, 25, 40, 0.98) 50%,
        rgba(35, 35, 55, 0.98) 100%);
    box-shadow: 
        0 0 15px rgba(120, 140, 255, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.start-icon {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#taskbar-apps {
    display: flex;
    gap: 4px;
}

.taskbar-app {
    height: 36px;
    padding: 0 12px;
    background: var(--hover);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.15);
}

.taskbar-app.active {
    background: var(--accent);
}

.taskbar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.system-tray {
    display: flex;
    gap: 12px;
}

.tray-icon {
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.tray-icon:hover {
    transform: scale(1.2);
}

#clock {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: var(--hover);
    border-radius: 6px;
    min-width: 140px;
    text-align: center;
}

/* Start menu */
.start-menu {
    position: fixed;
    bottom: 56px;
    left: 8px;
    width: 320px;
    max-height: 500px;
    background: var(--window-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.start-menu.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.start-menu-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.start-menu-header h3 {
    font-size: 16px;
    font-weight: 600;
}

/* User profile in start menu */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: var(--text-secondary);
}

/* User info in taskbar */
.user-info {
    padding: 6px 12px;
    background: var(--hover);
    border-radius: 6px;
    font-size: 13px !important;
    font-weight: 500;
}

.start-menu-apps {
    padding: 8px;
    max-height: 360px;
    overflow-y: auto;
}

.start-app {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.start-app:hover {
    background: var(--hover);
}

.app-icon {
    font-size: 24px;
}

.start-menu-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.power-button {
    width: 100%;
    padding: 10px;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.power-button:hover {
    background: #e6c36b;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* App-specifikke styles */
.app-content {
    height: 100%;
}

/* Terminal styling */
.terminal-output {
    font-family: 'Courier New', monospace;
    background: #1e1e1e;
    padding: 16px;
    border-radius: 8px;
    min-height: 200px;
    margin-bottom: 12px;
    color: #00ff00;
    font-size: 13px;
    overflow-y: auto;
}

.terminal-input {
    display: flex;
    gap: 8px;
}

.terminal-input input {
    flex: 1;
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* Lommeregner */
.calculator-display {
    background: #2a2a2a;
    padding: 20px;
    text-align: right;
    font-size: 32px;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 16px;
    min-height: 60px;
}

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

.calc-button {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-button:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.calc-button.operator {
    background: var(--accent);
}

/* Notepad */
.notepad-textarea {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #1a1a2e;
    resize: none;
    border-radius: 8px;
}

.notepad-textarea:focus {
    outline: none;
}

/* File Manager */
.file-manager {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

.file-toolbar {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.file-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-btn:hover {
    background: var(--accent);
}

.file-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.file-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.file-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    overflow-y: auto;
    padding: 12px 0;
}

.file-item, .folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.file-item:hover, .folder-item:hover {
    background: var(--hover);
}

.file-item.selected, .folder-item.selected {
    background: var(--accent);
}

.file-icon, .folder-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.file-name, .folder-name {
    font-size: 12px;
    word-break: break-word;
    max-width: 100px;
}

.file-size {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.file-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: none;
    gap: 4px;
}

.file-item:hover .file-actions,
.folder-item:hover .file-actions {
    display: flex;
}

.file-action-btn {
    width: 24px;
    height: 24px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.file-action-btn:hover {
    background: var(--accent);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent);
    background: var(--hover);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

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

.modal-content {
    background: var(--window-bg);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--border);
}

.modal-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* File list view (alternative) */
.file-list {
    flex: 1;
    overflow-y: auto;
}

.file-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-list-item:hover {
    background: var(--hover);
}

.file-list-icon {
    font-size: 24px;
}

.file-list-info {
    flex: 1;
}

.file-list-name {
    font-size: 14px;
    margin-bottom: 2px;
}

.file-list-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
}

/* Notepad Manager */
.notepad-container {
    display: flex;
    height: 100%;
    gap: 0;
}

.notepad-sidebar {
    width: 280px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
}

.notepad-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notepad-header h3 {
    font-size: 16px;
    margin: 0;
}

.notepad-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    white-space: nowrap;
}

.notepad-btn:hover {
    background: var(--accent);
}

.notepad-btn-new {
    background: var(--accent);
}

.notepad-btn-danger:hover {
    background: #c0392b;
}

.notepad-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.notepad-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.notepad-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.notepad-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notepad-empty p {
    margin-bottom: 8px;
}

.notepad-empty small {
    font-size: 11px;
}

.notepad-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.notepad-item:hover {
    background: var(--hover);
}

.notepad-item.active {
    background: var(--accent);
    border-color: var(--accent);
}

.notepad-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notepad-item-preview {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.notepad-item-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.notepad-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notepad-toolbar {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.notepad-title-input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.notepad-title-input:focus {
    outline: none;
    border-color: var(--accent);
}

.notepad-title-input::placeholder {
    color: var(--text-secondary);
}

.notepad-actions {
    display: flex;
    gap: 8px;
}

.notepad-textarea {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #1a1a2e;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
}

.notepad-textarea:focus {
    outline: none;
}

.notepad-status {
    padding: 8px 20px;
    font-size: 12px;
    border-top: 1px solid var(--border);
    min-height: 32px;
}

.notepad-status-success {
    color: #4caf50;
}

.notepad-status-error {
    color: #e94560;
}

/* Start menu divider */
.start-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 12px;
}

/* Refresh button in start menu */
.refresh-button {
    width: 100%;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* About pages */
.about-content {
    padding: 24px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-content h3 {
    font-size: 18px;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.about-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.about-content ul {
    margin: 12px 0 16px 24px;
    color: var(--text-secondary);
}

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

.about-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.about-section:last-child {
    border-bottom: none;
}

.tagline {
    font-size: 18px;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 24px;
}

/* Creative Process section */
.creative-process {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.creative-process h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.image-comparison-item {
    text-align: center;
}

.image-comparison-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.image-comparison-item .year {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.philosophy-quote {
    font-size: 18px;
    font-style: italic;
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 24px;
    color: var(--text-primary);
}

/* Email client */
.email-client {
    display: flex;
    height: 100%;
    gap: 0;
}

.email-sidebar {
    width: 200px;
    border-right: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
}

.email-sidebar h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.email-folder {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    font-size: 13px;
}

.email-folder:hover {
    background: var(--hover);
}

.email-folder.active {
    background: var(--accent);
}

.email-inbox-item {
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.email-inbox-item .subject {
    font-weight: 600;
    margin-bottom: 4px;
}

.email-inbox-item .preview {
    color: var(--text-secondary);
    font-size: 11px;
}

.email-compose {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.email-compose h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.email-field {
    margin-bottom: 12px;
}

.email-field label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.email-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent);
}

.email-input:read-only {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.email-textarea {
    flex: 1;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    resize: none;
    min-height: 150px;
}

.email-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.email-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.email-send-btn {
    padding: 12px 24px;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.email-send-btn:hover {
    background: #e6c36b;
}

.email-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.email-status {
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    text-align: center;
}

.email-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.email-status.error {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

/* Projects folder */
.projects-content {
    padding: 20px;
}

.projects-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.projects-header h3 {
    font-size: 14px;
    font-weight: 500;
}

.projects-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.projects-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Settings */
.settings-content {
    padding: 24px;
    max-width: 600px;
}

.settings-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-info-link {
    font-size: 12px;
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
}

.settings-info-link:hover {
    text-decoration: underline;
}

.background-options {
    display: flex;
    gap: 16px;
}

.background-option {
    width: 120px;
    cursor: pointer;
    transition: all 0.2s;
}

.background-option:hover {
    transform: scale(1.05);
}

.background-option.selected {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 8px;
}

.background-thumbnail {
    width: 100%;
    height: 70px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.background-thumbnail.solid {
    background: #1a1a2e;
}

.background-option-label {
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary);
}

.background-option.selected .background-option-label {
    color: var(--text-primary);
}

/* Explorer/Stifinder view */
.explorer-view {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.explorer-toolbar {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.explorer-path {
    font-size: 13px;
    color: var(--text-secondary);
}

.explorer-list {
    flex: 1;
    overflow-y: auto;
}

.explorer-header {
    display: flex;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.explorer-item {
    display: flex;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s;
}

.explorer-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.explorer-item:active {
    background: var(--accent);
}

.explorer-col {
    font-size: 13px;
}

.explorer-col.col-name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explorer-col.col-type {
    width: 180px;
    color: var(--text-secondary);
}

.explorer-icon {
    font-size: 16px;
}

/* Settings toggles */
.settings-toggle {
    margin-bottom: 16px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.toggle-text {
    color: var(--text-primary);
}

.toggle-description {
    margin-top: 6px;
    margin-left: 28px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Locked email field */
.field-locked {
    font-size: 12px;
    opacity: 0.7;
}

.email-input-locked {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed;
    border-style: dashed !important;
}
