/* AgroAdmin OS Interface */
.os-interface {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid #00d4ff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), inset 0 0 20px rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: osGlow 3s ease-in-out infinite alternate;
}

.os-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300d4ff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.os-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.os-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.os-version {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.8), 0 0 30px rgba(34, 197, 94, 0.4);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-text {
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: 600;
}

.desktop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: appFloat 4s ease-in-out infinite;
}

.app-icon:nth-child(1) { animation-delay: 0s; }
.app-icon:nth-child(2) { animation-delay: 0.5s; }
.app-icon:nth-child(3) { animation-delay: 1s; }
.app-icon:nth-child(4) { animation-delay: 1.5s; }
.app-icon:nth-child(5) { animation-delay: 2s; }
.app-icon:nth-child(6) { animation-delay: 2.5s; }

.app-icon:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}

.app-icon:hover .icon-bg {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6), 0 0 50px rgba(0, 212, 255, 0.3);
    animation: iconPulse 0.6s ease-in-out;
}

.icon-bg {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4ff, #0ea5e9);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.app-name {
    color: #f1f5f9;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.taskbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
}

.start-menu {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d4ff, #0ea5e9);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.running-apps {
    display: flex;
    gap: 0.5rem;
}

.running-app {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.running-app.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.running-app:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time {
    color: #f1f5f9;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.tray-icons {
    display: flex;
    gap: 0.5rem;
}

.tray-icons i {
    color: #94a3b8;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tray-icons i:hover {
    color: #00d4ff;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.8), 0 0 30px rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(34, 197, 94, 1), 0 0 50px rgba(34, 197, 94, 0.6);
        transform: scale(1.2);
    }
}

@keyframes osGlow {
    0% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), inset 0 0 20px rgba(0, 212, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 60px rgba(0, 212, 255, 0.6), inset 0 0 30px rgba(0, 212, 255, 0.2);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.15) rotate(10deg);
    }
    50% {
        transform: scale(1.25) rotate(15deg);
    }
}

@keyframes appFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .icon-bg {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .app-name {
        font-size: 0.75rem;
    }
    
    .os-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .taskbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .system-tray {
        order: -1;
    }
}