* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */

#small-screen-alert {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

/* Desktop */
.desktop {
    position: relative;
    width: 100%;
    height: 100vh;
    background: center/cover no-repeat;
    background-attachment: fixed;
}

/* Menu Bar */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: #dbdbdb;
    font-size: 13px;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.apple-logo {
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    color: #9e9c9caf;
}

.menu-right {
    display: flex;
    align-items: center;
    gap:2px;
}

.menu-item {
    background: transparent;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.menu-item:hover {
    background: transparent;
}

.flickai-button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #00000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.flickai-button:hover {
    background-color: #00000000;
}

.flickai-button img {
    width: 20px;
    height: 14px;
    display: block;
    margin: auto;
    position: relative;
    top: -1px;
}

/* FlickAI Notification Containers */
.flickai-container {
    position: fixed;
    top: 25px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    border-radius: 15px;
    padding: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.flickai-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(40, 80, 120, 0.4);
    color: white;
    outline: none;
    font-size: 14px;
}

.flickai-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.flickai-input {
    width: 100%;
}

.flickai-chat-container {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

.flickai-chat-container::-webkit-scrollbar {
    width: 5px;
}

.flickai-chat-container::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 5px;
}

.message {
    padding: 10px 16px;
    border-radius: 15px;
    max-width: 100%;
    word-break: break-word;
}

.message.bot {
    align-self: center;
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.message.thinking {
    font-style: italic;
    opacity: 0.8;
}

span.menu-item {
    vertical-align: middle;
    margin-top: -2px;
}

/* Windows */
.window {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    min-width: 400px;
    min-height: 300px;
    overflow: hidden;
    resize: both;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.window.minimized {
    transform: scale(0.1);
    opacity: 0;
    pointer-events: none;
}

.window-header {
    height: 20px;
    background: #000000cc;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    cursor: move;
}

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

.window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.window-control.close {
    background: #ff5f57;
}

.window-control.minimize {
    background: #ffbd2e;
}

.window-control.maximize {
    background: #28ca42;
}

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

.window-control.close:hover::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.window-control.minimize:hover::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.window-control.maximize:hover::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.window-content {
    padding: 2.5px;
    height: calc(100% - 40px);
    overflow: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
}

/* Dock */
.dock {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dock-item {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.dock-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dock-item:hover {
    transform: scale(1.3) translateY(-15px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* App Icons with Glassmorphism */
.files { 
    background: rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(79, 172, 254, 0.4);
}
.safari { 
    background: rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.4);
}
.terminal { 
    background: rgba(45, 55, 72, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(74, 85, 104, 0.4);
}
.calculator { 
    background: rgba(255, 154, 158, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(254, 207, 239, 0.4);
}
.notes { 
    background: rgba(255, 236, 210, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(252, 182, 159, 0.4);
}
.settings { 
    background: rgba(168, 237, 234, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(254, 214, 227, 0.4);
}
.photos { 
    background: rgba(168, 237, 234, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(254, 214, 227, 0.4);
}
/* Context Menu */
.context-menu {
    position: fixed;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(30px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 2000;
    display: none;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #ffffffe6;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0);
    margin: 2px 6px;
    border-radius: 8px;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translateX(2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.window {
    animation: fadeInUp 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .dock {
        padding: 6px 10px;
    }
    
    .dock-item {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .window {
        min-width: 300px;
        min-height: 250px;
    }
}

#clock {
        background: transparent;
        font-weight: bold;
    }

    #clock:hover {
        background: transparent;
        backdrop-filter: none;
        transform: none;
        box-shadow: none;
    }

    #date {
        background: transparent;
        font-weight: bold;
    }

    #date:hover {
        background: transparent;
        backdrop-filter: none;
        transform: none;
        box-shadow: none;
    }

    #ip-address {
        background: transparent;
        padding: 5px 10px;
        border-radius: 5px;
        transition: background 0.3s ease;
        font-size: 13px;
    }

    #ip-address:hover {
        background: transparent;
    }
